Hi, i am trying to model the database for a project that i am developing i have the following modelsclass CommonInfo(models.Model):#fieldsclass Meta:abstract = Trueclass Person(CommonInfo):#fieldsclass LegalEntity(CommonInfo):#fieldsclass User(models.Model):user = models.OneToOneField('auth.user', unique=True)class Meta:abstract = Trueclass Customer(User):#implicit user referece to a django user 'auth.user'class PersonCustomer(Person, Customer):#implicit user referece to a django user 'auth.user'class LegalEntityCustomer(LegalEntity, Customer):#implicit user referece to a django user 'auth.user'I created the ModelAdmin to each model and setted a custom form to create a django user every time a customer is created, but the problem i am getting is that when i create a PersonCustomer (the custom form creates a django user as expected) and after that a LegalEntityCustomer (again another django user is created as expected) the PersonCustomer has its user reference changed to the django user created to LegalEntityCustomer, actually if i change the order of creation the same thing happens but this time the LegalEntityCustomer that has it's user reference changed, anybody know what i am doing wrong? Thanks, in advance.
Gerald Klein DBA
Arch Awesome, Ranger & Vim the coding triple threat.
Linux registered user #548580
--
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/-/U_5SkUFAxRIJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
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/-/U_5SkUFAxRIJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.