Sunday, September 23, 2012

save() got an unexpected keyword argument 'force_insert'


Hi guys,
Anybody knows why I'm at this stage ?
Group.objects.using('db2').get_or_create(name='Maintenance Admin')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 383, in get_or_create
    obj.save(force_insert=True, using=self.db)
TypeError: save() got an unexpected keyword argument 'force_insert'


I'm getting this error on creating a new group on mydatabase2
Not getting the exact reason behind this ...
plz help ...

Thanks in Advance

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/4Rosfupipe4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate