Allow custom message to be set in the create/update/delete generic views
The views in django.views.generic.create_update automatically creates the message "The %(verbose_name)s was deleted." It would be nice to have an additional argument to these views called "message" where users could set their own message. For instance, I'm using the message '%(verbose_name)s "%(object_name)s" successfully deleted' in my views.
Change History
(6)
| milestone: |
→ post-1.0
|
| Triage Stage: |
Unreviewed → Design decision needed
|
| Owner: |
changed from nobody to ColtonProvias
|
| Status: |
new → assigned
|
| Triage Stage: |
Design decision needed → Accepted
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
I attempted to create a small patch to add on this functionality. It processes the string passed to it as a template and renames model._meta to model.meta. If something doesn't work, I apologize as this is my first attempt at a patch to django.