Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#14920 closed (fixed)

Many test failures running full suite with postgres backend

Reported by: Karen Tracey Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm getting clean full test suite run on sqlite, but not postgres (haven't tried anywhere else). On postgres, problems are reported in fixtures, serializers, proxy_model_inheritance, transactions, admin_changelist, and fixtures_regress. Each of these runs fine individually; --bisect (great new flag!) fingers auth as the cause of the problem. Full suite output is:

--> ./runtests.py --settings=testdb.postgres -v1
Creating test database for alias 'default'...
Creating test database for alias 'other'...
Destroying old test database 'other'...
............................................................................................................................................................................................................................................................................................................s...........................................................................................................................................................................................................................................................................................................s.....................................................................................................................................................................s....................................................................................................................................................................................................................................................................x.......................................s....................................................................................................................................................................................s..................................................................................................................................ss............................................................................................................................................................................................................................................................ss............x..............................................................................................................................................................................................................................................................................................................................................................................E........................................................................................EEEEEEEEEEEEEEEEEEEEEEEEE.............EEEE....................................................................................................................................................................................................................E..........................................................................................................................................................ssssssssssssssssssssssssssssssss..............................................................................................................................E.....................................................................................................................................................................................................................................................................................................................................................................................................EEssss...............................................................................................................ss...s.....
======================================================================
ERROR: test_format_discovery (modeltests.fixtures.tests.FixtureTransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_forward_refs (modeltests.serializers.tests.JsonSerializerTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_forward_refs (modeltests.serializers.tests.XmlSerializerTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_table_exists (modeltests.proxy_model_inheritance.tests.ProxyModelInheritanceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_autocommit (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_autocommit_context_manager (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_autocommit_context_manager_with_using (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_bad_sql (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success_exit (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success_succeed (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success_with_using (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_manually_managed (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_manually_managed_mistake (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_manually_managed_with_using (modeltests.transactions.tests_25.TransactionContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_bad_sql (modeltests.transactions.tests.TransactionRollbackTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_autocommit (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_autocommit_decorator (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_autocommit_decorator_with_using (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success_exit (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success_succeed (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_commit_on_success_with_using (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_manually_managed (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_manually_managed_mistake (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_manually_managed_with_using (modeltests.transactions.tests.TransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_result_list_editable (regressiontests.admin_changelist.tests.ChangeListTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_result_list_editable_html (regressiontests.admin_changelist.tests.ChangeListTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_result_list_html (regressiontests.admin_changelist.tests.ChangeListTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_select_related_preserved (regressiontests.admin_changelist.tests.ChangeListTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_concurrent_delete (regressiontests.delete_regress.tests.DeleteLockingTest)
Deletes on concurrent transactions don't collide and lock the database. Regression for #9479
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_ticket_11101 (regressiontests.fixtures_regress.tests.TestTicket11101)
Test that fixtures can be rolled back (ticket #11101).
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_integrity_checks_on_creation (regressiontests.backends.tests.FkConstraintsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


======================================================================
ERROR: test_integrity_checks_on_update (regressiontests.backends.tests.FkConstraintsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 288, in __call__
    self._pre_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 255, in _pre_setup
    self._fixture_setup()
  File "/home/kmtracey/django/trunk/django/test/testcases.py", line 267, in _fixture_setup
    call_command('flush', verbosity=0, interactive=False, database=db)
  File "/home/kmtracey/django/trunk/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/kmtracey/django/trunk/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/kmtracey/django/trunk/django/core/management/commands/flush.py", line 74, in handle_noargs
    emit_post_sync_signal(set(all_models), verbosity, interactive, db)
  File "/home/kmtracey/django/trunk/django/core/management/sql.py", line 190, in emit_post_sync_signal
    interactive=interactive, db=db)
  File "/home/kmtracey/django/trunk/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/kmtracey/django/trunk/django/contrib/auth/management/__init__.py", line 51, in create_permissions
    content_type=ctype
  File "/home/kmtracey/django/trunk/django/db/models/manager.py", line 138, in create
    return self.get_query_set().create(**kwargs)
  File "/home/kmtracey/django/trunk/django/db/models/query.py", line 360, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/kmtracey/django/trunk/django/db/models/base.py", line 558, in save_base
    transaction.commit_unless_managed(using=using)
  File "/home/kmtracey/django/trunk/django/db/transaction.py", line 177, in commit_unless_managed
    connection._commit()
  File "/home/kmtracey/django/trunk/django/db/backends/postgresql_psycopg2/base.py", line 200, in _commit
    return self.connection.commit()
IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "auth_permission_content_type_id_fkey"
DETAIL:  Key (content_type_id)=(768) is not present in table "django_content_type".


----------------------------------------------------------------------
Ran 3154 tests in 395.991s

FAILED (errors=34, skipped=48, expected failures=2)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...

Change History (2)

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

(In [14985]) Fixed #14920 -- Fixed some test failures caused by caching contenttypes that were loaded during a contenttype fixture test. Thanks to Karen for the report.

comment:2 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top