Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
unexpected keyword argument 'force_insert'
399 views
Skip to first unread message
mail....@gmail.com
unread,
Sep 24, 2008, 4:11:48 PM
9/24/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Using django 1.0 and django-registration I'm getting this error:
save() got an unexpected keyword argument 'force_insert'
I've read some docs about adding force_insert as a keyword, but I
guess I'm not seeing where/how to do that.
Also, I don't really think there's any problem with django-
registration. I suspect the problem may be related to my
profile_callback:
def create_site_user(new_user):
new_user_profile = SiteUser.objects.create(
user=new_user,
site = Site.objects.get_current()
)
new_user_profile.save()
I've also tried it with
new_user_profile.save(force_insert=True) but get the same error.
mail....@gmail.com
unread,
Sep 24, 2008, 4:52:12 PM
9/24/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Found it... actually on the user_profile models save()
changing it to
def save(self, *args, **kwargs):
...
super(SiteUser, self).save(*args, **kwargs)
fixed it.
On Sep 24, 3:11 pm, "
bax...@gretschpages.com
" <
mail.bax...@gmail.com
>
wrote:
akhaitan
unread,
Sep 30, 2008, 3:29:35 PM
9/30/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Thanks a lot.. i had similar problems.. Did helped..
On Sep 24, 1:52 pm, "
bax...@gretschpages.com
" <
mail.bax...@gmail.com
>
wrote:
Reply all
Reply to author
Forward
0 new messages