mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Add unique_together altering operation
This commit is contained in:
parent
310cdf492d
commit
67dcea711e
7 changed files with 84 additions and 17 deletions
|
|
@ -83,7 +83,7 @@ class AutodetectorTests(TestCase):
|
|||
# Right action?
|
||||
action = migration.operations[0]
|
||||
self.assertEqual(action.__class__.__name__, "CreateModel")
|
||||
self.assertEqual(action.name, "Author")
|
||||
self.assertEqual(action.name, "author")
|
||||
|
||||
def test_old_model(self):
|
||||
"Tests deletion of old models"
|
||||
|
|
@ -100,7 +100,7 @@ class AutodetectorTests(TestCase):
|
|||
# Right action?
|
||||
action = migration.operations[0]
|
||||
self.assertEqual(action.__class__.__name__, "DeleteModel")
|
||||
self.assertEqual(action.name, "Author")
|
||||
self.assertEqual(action.name, "author")
|
||||
|
||||
def test_add_field(self):
|
||||
"Tests autodetection of new fields"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue