Maybe I'm misunderstanding ,but if you just need to validate why give your form a custom clean() method to take the p_id parameter and verify with self.clean_data?
If you have to pass it in on creation, this is what I did when I extended extended the form class to handle a bunch of OneToOneField related models. try: self.primary_key = kwargs.pop('pk') # pop off kwargs so the base class doesn't get it. # do stuff here except: # no key 'pk', so do something else #call the forms.Form.__init__ super(Dyn1to1Form, self).__init__(*args, **kwargs) On Mar 16, 8:17 pm, "johnny" <[EMAIL PROTECTED]> wrote: > > self.data.get('p_id') > > I tried it, getting error: > > Exception Type: AttributeError > Exception Value: 'str' object has no attribute 'get' --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---