On Mar 9, 4:15 pm, Laereom <jamesdbo...@gmail.com> wrote:
> I have a model, Response, which has a ManyToMany field with the model
> Question named 'questionid'.  When I create an instance of response
> like this:
> response = Response(questionid=question,
> blah,
> blah
> )
>
> I receive the following error:
> TypeError at /answer
> 'questionid' is an invalid keyword argument for this function
>
> It would seem, then, that although this is how one assigns normal
> fields, ManyToMany fields have a special syntax -- Chapter 10 does
> state this, and gives information on how to access things with
> ManyToMany and ForeignKey attributes, but no information on actually
> setting them that I can find.
>
> Anyone care to help me out?

Anything wrong with the very fine documentation?
http://docs.djangoproject.com/en/1.1/ref/models/relations/
--
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-us...@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