mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fix schema editor interaction with new transactions
This commit is contained in:
@@ -453,7 +453,7 @@ class SchemaTests(TransactionTestCase):
|
||||
Tag.objects.create(title="foo", slug="foo")
|
||||
Tag.objects.create(title="bar", slug="foo")
|
||||
connection.rollback()
|
||||
# Alter the slug field to be non-unique
|
||||
# Alter the slug field to be unique
|
||||
new_new_field = SlugField(unique=True)
|
||||
new_new_field.set_attributes_from_name("slug")
|
||||
editor = connection.schema_editor()
|
||||
|
||||
Reference in New Issue
Block a user