[Django] #21647: Add error_message, warning_message, info_message, debug_message in ClassViews

10 views
Skip to first unread message

Django

unread,
Dec 20, 2013, 11:05:20 AM12/20/13
to django-...@googlegroups.com
#21647: Add error_message, warning_message, info_message, debug_message in
ClassViews
----------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: New feature | Status: new
Component: contrib.messages | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------
Improve #16319 adding the rest of message tags:

{{{
class CreatePersonView(CreateView):
model = Person
success_url = "/"
success_message = "%(name)s was created successfully"
error_message = "%(name)s was NOT created successfully"
warning_message = ""
info_message = ""
debug_message = ""
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21647>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 20, 2013, 1:07:58 PM12/20/13
to django-...@googlegroups.com
#21647: Add error_message, warning_message, info_message, debug_message in
ClassViews
----------------------------------+--------------------------------------

Reporter: anonymous | Owner: nobody
Type: New feature | Status: new
Component: contrib.messages | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by mjtamlyn):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

When exactly would these be used? This seems to me to be a definite
example of project specific code.

--
Ticket URL: <https://code.djangoproject.com/ticket/21647#comment:1>

Django

unread,
Dec 21, 2013, 4:58:42 AM12/21/13
to django-...@googlegroups.com
#21647: Add error_message, warning_message, info_message, debug_message in
ClassViews
----------------------------------+--------------------------------------
Reporter: anonymous | Owner: nobody
Type: New feature | Status: closed
Component: contrib.messages | Version: 1.6
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by timo):

* status: new => closed
* resolution: => needsinfo


Comment:

It's also unclear to me how this would work.

--
Ticket URL: <https://code.djangoproject.com/ticket/21647#comment:2>

Reply all
Reply to author
Forward
0 new messages