Re: Question about Signals : How to get the Primary Key Value ?

2011-10-06 Thread bino oetomo
On 10/06/2011 05:11 PM, Daniel Roseman wrote: The instance is in, well, the `instance` argument. You get it from there. -- DR. Thankyou ... I got it by ---> print obj.pk Sincerely -bino- -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Question about Signals : How to get the Primary Key Value ?

2011-10-06 Thread Daniel Roseman
On Thursday, 6 October 2011 10:10:09 UTC+1, bino wrote: > > Dear All .. > > From the basic tutorial of "Polls", > I add this lines to model.py > START > from django.db.models.signals import post_save > > def do_something(sender, **kwargs): > print "==START===" >

Re: Question about Signals : How to get the Primary Key Value ?

2011-10-06 Thread BILLION Sébastien
hi, obj.id ? BILLION Sébastien the Answer to the ultimate question of life, the universe and everything is 42 http://www.sebastienbillion.com/ Le 06/10/2011 11:10, bino oetomo a écrit : Dear All .. From the basic tutorial of "Polls", I add this lines to

Question about Signals : How to get the Primary Key Value ?

2011-10-06 Thread bino oetomo
Dear All .. From the basic tutorial of "Polls", I add this lines to model.py START from django.db.models.signals import post_save def do_something(sender, **kwargs): print "==START===" print "Called by : " , sender print "This is KWARGS :" print kwargs