On Aug 24, 5:06 pm, BobZ <bobzav...@gmail.com> wrote:
> The real brain buster is that I get this error whether I'm passing a
> form_class or a simple Model in urls.py
>
> On Aug 24, 11:05 am, BobZ <bobzav...@gmail.com> wrote:
>
>
>
> > Thanks for the quick response!
>
> > forms.py
>
> > from django import forms
> > from django.forms import ModelForm
> > from models import Photo
>
> > class UserPhotoUploadForm(ModelForm):
> >     def __init__(self, *args, **kwargs ):
> >         self.user = kwargs.pop("user")
> >         super(UserPhotoUploadForm, self).__init__(*args, **kwargs)
>
> >     class Meta:
> >         model = Photo
> >         exclude = ( 'user', 'title_slug', 'view_count',
> > 'date_added', )

The only thing I can think of is that you're somehow redefining Photo
somewhere, so that it's not actually a model. I can't think what would
give that specific error, though.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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