On Jun 26, 7:33 am, Shuge Lee <shuge....@gmail.com> wrote:
> models.pyhttp://gpaste.com/p/3747b
>
> admin.pyhttp://gpaste.com/p/3d432

If you need to have custom code when a model is saved through the
admin, you should override the save_model method in your Admin class.
See this doc: 
http://docs.djangoproject.com/en/dev//ref/contrib/admin/#modeladmin-methods

-RD

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to