Opened 13 years ago
Last modified 11 years ago
#16319 closed New feature
add success_message in ClassViews — at Version 1
Reported by: | 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 )
sample:
class CreatePersonView(CreateView): model = Person success_url = "/" success_message = "%(name)s was created successfully"
after object created calls messages.sucess_message
:-)
Note:
See TracTickets
for help on using tickets.
Just reformatted code excerpt.