#16319: add success_message in ClassViews
-------------------------------------------+-------------------------------
               Reporter:  wilsonpjunior@…  |          Owner:  nobody
                   Type:  New feature      |         Status:  new
              Milestone:  1.4              |      Component:  Generic views
                Version:  1.3              |       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 aaugustin):

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


Old description:

> sample:
>
> class CreatePersonView(CreateView):
>     model = Person
>     success_url = "/"
>     success_message = "%(name)s was created successfully"
>

> after object created calls messages.sucess_message
>
> :-)

New description:

 sample:

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

 after object created calls `messages.sucess_message`

 :-)

--

Comment:

 Just reformatted code excerpt.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to