On 2011-06-24, at 10:47 , Simone Dalla wrote: > 2011/6/24 Bussiere <bussi...@gmail.com> > >> Hello, >> this is my first message here. >> I have a question : >> >> I have a actor object in my model, and a webpage in my model. >> >> And i want that when a user record an actor in the admin interface it >> create automatically a webpage associated wit(h the actor. >> I now how to create the webpage in my model, but i want to call a function >> each time someone record an actor in the administration menu. >> >> How to do that please ? >> >> Regards >> Bussiere >> > > https://docs.djangoproject.com/en/1.3/topics/db/models/#overriding-model-methods This creates a strong coupling between the model and a potentially unrelated business or maintenance operation.
Bussiere's use case seems to be exactly what signals[0] were included for, so I'd recommend that instead. [0] https://docs.djangoproject.com/en/dev/topics/signals/ -- 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.