id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 7578 error in any ORM operations after 'duplicate key violation' san@… nobody "create models {{{ class TestCommon(models.Model): name=models.CharField(max_length=10, unique=True) class Test1(TestCommon): num1=models.IntegerField() class Test2(TestCommon): num2=models.IntegerField() }}} then {{{ python manage.py shell >>> from mysite.cp.models import TestCommon, Test1, Test2 >>> Test1.objects.create(name='test2',num1=1) -- this works good Test1.objects.create(name='test2',num1=1) -- this returns error 'duplicate key violation' in name field Test1.objects.create(name='test3',num1=1) }}} -- now this will not work and any other request will not work too I have Checked out revision 7810. DATABASE_ENGINE = 'postgresql_psycopg2'" closed Database layer (models, ORM) dev invalid Unreviewed 0 0 0 0 0 0