Friday, June 29, 2012

Re: Redirect question

[...] 
Also I would like you to point out if I did something here that could have been done in better way so I can do it right and learn for the future.

If you're using Class Based Views, you can use a mixin to achieve this. Here's mine if you want to check it out: http://stackoverflow.com/questions/5531258/example-of-django-class-based-deleteview/10903943#10903943 (Scroll Down to the Bottom)

This may be a bit advanced for you at the moment but it works really well for me. You can ignore most all of the other code in that posting and just focus on the MessageMixin. Also, see the documentation link posted by Daniel Roseman. The messaging framework is the way to go for passing on a "Success" or some type of a notification message.

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

No comments:

Post a Comment