Thanks! So I just need to replace "forms" with "models and it'll work?

-- djangomax

On May 5, 8:50 pm, Malcolm Tredinnick <[email protected]>
wrote:
> On Tue, 2009-05-05 at 21:42 -0300, Gabriel wrote:
> > djangomax escribió:
> > > According to the Django Book for version 1.0, the following should
> > > work:
>
> > > fileField = forms.FileField(upload_to='foo')
>
> > > However, I get an error saying there was an unexpected argument. Any
> > > idea why?
> > > I'm new to Django and may be doing something outright stupid.
>
> There is a difference between model fields (which are in the
> django.db.models.* namespace) and form fields (in the django.forms.*
> namespace).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to