Re: Can not add a group to a custom auth user

2014-08-31 Thread Ikaros andi
super(Merchant, self).save(force_insert=True) solved the problem! On Monday, September 1, 2014 2:15:22 PM UTC+8, Ikaros andi wrote: > > I debug into save method and find: > > ValueError: "" needs to have a value for field "user" > before this ma

Re: Can not add a group to a custom auth user

2014-08-31 Thread Ikaros andi
I debug into save method and find: ValueError: "" needs to have a value for field "user" before this many-to-many relationship can be used. Merchant have already been super saved. I can figure it out On Wednesday, August 27, 2014 10:08:15 PM UTC+8, Collin Anderson wrote: > > i assume "groups

Can not add a group to a custom auth user

2014-08-26 Thread Ikaros andi
I want create a user with custom group in django admin. so I write below code: from django.contrib.auth.models import User as AuthUserfrom django.contrib.auth.models import Group # These groups have already been created while project start.class TestGroup(object): Admin = 'Admin'