Re: ManyToManyField and Multi Table Inheritance

2014-04-01 Thread Camilo Torres
I tested this with SQLite3 and it worked, using your models: >>> a.users = User.objects.all() >>> a.save() >>> a.delete() >>> a = AccountTypeA(name='') >>> a.save() >>> a.users = User.objects.all() After that: sqlite> select * from testapp_accounttype_users; 1|1|1 Which is what I should expe

ManyToManyField and Multi Table Inheritance

2014-04-01 Thread Izidor MatuĊĦov
Hi, I've run into interesting issue and I'm not sure if I do something wrong or this is Django issue. I'm using Multi Table Inheritance: from django.db import models from django import forms class AccountType(models.Model): users = models.ManyToManyField('auth.User', related_name='accounts