Re: accessing pk of an existing object in ModelForm

2009-11-23 Thread Gregor Kling
Daniel Roseman wrote: > On Nov 23, 2:57 pm, hg7581 wrote: > >> Hello there, >> For doing some sanity checks, I need the primary key (pk) of an >> (already existing) object in a ModelForm. >> >> What works for me in the meantime, ist the following (admin interface): >> >> class NF(ModelForm): >>

Re: accessing pk of an existing object in ModelForm

2009-11-23 Thread Daniel Roseman
On Nov 23, 2:57 pm, hg7581 wrote: > Hello there, > For doing some sanity checks, I need the primary key (pk) of an > (already existing) object in a ModelForm. > > What works for me in the meantime, ist the following (admin interface): > > class NF(ModelForm): > def __init__(self,*args,**kwargs): >