#11772: ModelAdmin - added a model_modified hook for full CRUD support -------------------------------------------------------------+-------------- Reporter: Rupe | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Keywords: modeladmin hook modified save add change delete | Stage: Unreviewed Has_patch: 1 | -------------------------------------------------------------+-------------- I added a simple hook called model_modified that is called after each insert, update, and delete via the ModelAdmin class. There are times when it's useful to know when a model changes in any way by the user (via the admin app), including delete. The current methodology of overriding the save_model hook does not include delete. The usefulness of this hook over using the model signals for model changes is that you have access to the response object. I used this hook to clear certain session variables that were dependent on the correlating models.
-- Ticket URL: <http://code.djangoproject.com/ticket/11772> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---