Re: Entity has an event Lifecycle, how does Django do it?

2012-12-20 Thread Glyn Jackson
@Russel, right, now I know what i'm looking for it makes it easier lol. thank you signals is what I needed. On Wednesday, December 19, 2012 11:29:28 PM UTC, Russell Keith-Magee wrote: > > Hi Glyn, > > What you're calling "events", Django calls "signals" [1]. In particular, > I'm guessing you're

Re: Entity has an event Lifecycle, how does Django do it?

2012-12-19 Thread Russell Keith-Magee
Hi Glyn, What you're calling "events", Django calls "signals" [1]. In particular, I'm guessing you're looking for the pre_save and post_save signals. [1] https://docs.djangoproject.com/en/dev/topics/signals/ Yours, Russ Magee %-) On Wed, Dec 19, 2012 at 5:53 PM, Glyn Jackson wrote: > In other

Re: Entity has an event Lifecycle, how does Django do it?

2012-12-19 Thread Sergiy Khohlov
Have you checked https://docs.djangoproject.com/en/dev/topics/auth/ ? Allso views and forms for this one are already created Many thanks, Serge +380 636150445 skype: skhohlov 2012/12/19 Glyn Jackson : > In other languages and frameworks I have used when you have an entity such > as user. Ea

Entity has an event Lifecycle, how does Django do it?

2012-12-19 Thread Glyn Jackson
In other languages and frameworks I have used when you have an entity such as user. Each entity has an event lifecycle i.e. post update, pre update, post save etc The following code below is my first save using Django. But its looks very messy, it should be than user has a pre create for member