Opened 6 years ago

Last modified 4 years ago

#16319 closed New feature

add success_message in ClassViews — at Version 1

Reported by: wilsonpjunior@… Owned by: nobody
Component: contrib.messages Version: master
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 Changed 6 years ago by Aymeric Augustin

Description: modified (diff)

Just reformatted code excerpt.

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