On 6/7/07, Vincent Nijs <[EMAIL PROTECTED]> wrote:
>
> TypeError: create() takes exactly 1 argument (2 given)
>
> Any ideas?

Calling
g = Group.objects.create("section81")

is the same as calling

Group("section81")

This yeilds an error because there is no way of knowing which model
field the string "section81" should be applied to.

If you make this a keyword argument:

g = Group.objects.create(name="section81")

the problem should resolve itself.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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