mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed ModelState breaking when unique_together has unhashable elements.
This commit is contained in:
parent
54d9e3ccf6
commit
19e4374971
3 changed files with 10 additions and 6 deletions
|
@ -55,7 +55,7 @@ class StateTests(TestCase):
|
|||
self.assertEqual(author_state.fields[1][1].max_length, 255)
|
||||
self.assertEqual(author_state.fields[2][1].null, False)
|
||||
self.assertEqual(author_state.fields[3][1].null, True)
|
||||
self.assertEqual(author_state.options, {"unique_together": set(("name", "bio"))})
|
||||
self.assertEqual(author_state.options, {"unique_together": {("name", "bio")}})
|
||||
self.assertEqual(author_state.bases, (models.Model, ))
|
||||
|
||||
self.assertEqual(book_state.app_label, "migrations")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue