|
@@ -811,9 +811,6 @@ class ModelState:
|
|
|
if name == "unique_together":
|
|
|
ut = model._meta.original_attrs["unique_together"]
|
|
|
options[name] = set(normalize_together(ut))
|
|
|
- elif name == "index_together":
|
|
|
- it = model._meta.original_attrs["index_together"]
|
|
|
- options[name] = set(normalize_together(it))
|
|
|
elif name == "indexes":
|
|
|
indexes = [idx.clone() for idx in model._meta.indexes]
|
|
|
for index in indexes:
|
|
@@ -829,7 +826,7 @@ class ModelState:
|
|
|
# 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"]:
|
|
|
+ for key in ["unique_together", "order_with_respect_to"]:
|
|
|
if key in options:
|
|
|
del options[key]
|
|
|
# Private fields are ignored, so remove options that refer to them.
|