Something that is fairly common in web applications are indicator
messages. For example, after you've posted an article, the site should
echo back to you 'Article x created'. This is important because it
let's the user know what is going on.

Unfortunately with Django generic views, particularly the
create/update/delete ones, there isn't any way to easily pass a success
message to be displayed via a template. That in my opinion needs to be
a parameter option, because otherwise it is fairly difficult to check
as to whether the create/update/delete method was a success and thus
the message needs to be passed into the template.

It would also be nice for the auth generic views (login, logout), as an
easy way to say 'You are logged in, x', or 'You are logged out', etc.

Does anyone else agree with me? It would just take the form of a
keyword argument. For example:

from django.views.generic.create_update import create_object

def create_job(request):
    return create_object(request, model=Job, post_save_redirect='/',
        login_required=True, message='Job added')


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to