Hello Everybody,

I'm going to create a Group using Django Group. 

I have two databases one is "master" and another is "slave" 
In master I created a user and group as usual. 

And in slave database I tried like this:


*>>> Group.objects.db_manager('slave').create(name="grp1")*

This returned an error : 

*Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/django/db/models/manager.py", line 
138, in create
    return self.get_query_set().create(**kwargs)
  File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 
358, in create
    obj.save(force_insert=True, using=self.db)
TypeError: save() got an unexpected keyword argument 'force_insert'*

I also tried as follows, but got error :

*>>> g = Group()
>>> g.name = "grp1"
>>> g.save(using='slave')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: save() got an unexpected keyword argument 'using'
*

Thanks in advance...


Laxmikant

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to