Opened 11 years ago

Closed 11 years ago

#21647 closed New feature (needsinfo)

Add error_message, warning_message, info_message, debug_message in ClassViews

Reported by: anonymous Owned by: nobody
Component: contrib.messages Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 = ""

Change History (2)

comment:1 by Marc Tamlyn, 11 years ago

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

comment:2 by Tim Graham, 11 years ago

Resolution: needsinfo
Status: newclosed

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

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