Thanks

On 8 Ott, 12:54, Tom Evans <tevans...@googlemail.com> wrote:
> On Thu, 2009-10-08 at 13:27 +0300, Bogdan I. Bursuc wrote:
> > I'm sorry, but i still can't figure out where the error comes.
> > Can you post your traceback from the error page ?
>
> The error comes because he misspelled 'class Meta' as 'class meta'.
>
> >>> class profilemodelform(ModelForm):
>
> ...   class meta:
> ...     model = UserProfile
> ...>>> a=profilemodelform()
>
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "~/lib/python2.5/site-packages/django/forms/models.py", line 197,
> in __init__
>     self.instance = opts.model()
> TypeError: 'NoneType' object is not callable
>
> Tom
--~--~---------~--~----~------------~-------~--~----~
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