Fix PostgreSQL failing on a test
This commit is contained in:
parent
b6784bee66
commit
a589fdff81
|
@ -119,6 +119,7 @@ class SchemaTests(TestCase):
|
||||||
DatabaseError,
|
DatabaseError,
|
||||||
lambda: list(Author.objects.all()),
|
lambda: list(Author.objects.all()),
|
||||||
)
|
)
|
||||||
|
connection.rollback()
|
||||||
|
|
||||||
@skipUnless(connection.features.supports_foreign_keys, "No FK support")
|
@skipUnless(connection.features.supports_foreign_keys, "No FK support")
|
||||||
def test_fk(self):
|
def test_fk(self):
|
||||||
|
|
Loading…
Reference in New Issue