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
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
2 matches
Mail list logo