mirror of
https://github.com/django/django.git
synced 2025-04-25 01:34:38 +00:00
Fix test breakage from previous state fix
This commit is contained in:
parent
7b17350a1b
commit
386166970c
@ -204,6 +204,12 @@ class ModelState(object):
|
|||||||
options[name] = set(normalize_together(it))
|
options[name] = set(normalize_together(it))
|
||||||
else:
|
else:
|
||||||
options[name] = model._meta.original_attrs[name]
|
options[name] = model._meta.original_attrs[name]
|
||||||
|
# If we're ignoring relationships, remove all field-listing model
|
||||||
|
# options (that option basically just means "make a stub model")
|
||||||
|
if exclude_rels:
|
||||||
|
for key in ["unique_together", "index_together", "order_with_respect_to"]:
|
||||||
|
if key in options:
|
||||||
|
del options[key]
|
||||||
|
|
||||||
def flatten_bases(model):
|
def flatten_bases(model):
|
||||||
bases = []
|
bases = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user