Yes signals was a way to do it but it didn't clearly understood how it
works.

Signals are interesting but i didn't manage to make them works for the
moment.

But i will make more search on it.

Thanks and regards
Bussiere



"Les nouvelles technologies offrent pleins de nouvelles possibilités, pleins
de possibilités d'erreurs surtout en fait."
insurance.aes256 <http://goo.gl/gHyAY> : http://goo.gl/gHyAY




On Fri, Jun 24, 2011 at 10:51 AM, Masklinn <maskl...@masklinn.net> wrote:

> 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.
>
>

-- 
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