Opened 13 years ago

Last modified 11 years ago

#16319 closed New feature

add success_message in ClassViews — at Version 1

Reported by: wilsonpjunior@… Owned by: nobody
Component: contrib.messages Version: dev
Severity: Normal Keywords:
Cc: d1fffuz0r@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Aymeric Augustin)

sample:

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

after object created calls messages.sucess_message

:-)

Change History (1)

comment:1 by Aymeric Augustin, 13 years ago

Description: modified (diff)

Just reformatted code excerpt.

Note: See TracTickets for help on using tickets.
Back to Top