aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/utils/model_meta.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/utils/model_meta.py')
-rw-r--r--rest_framework/utils/model_meta.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/utils/model_meta.py b/rest_framework/utils/model_meta.py
index dd92f8b6..d92bceb9 100644
--- a/rest_framework/utils/model_meta.py
+++ b/rest_framework/utils/model_meta.py
@@ -145,8 +145,8 @@ def _get_reverse_relationships(opts):
related_model=related,
to_many=True,
has_through_model=(
- (getattr(relation.field.rel, 'through', None) is not None)
- and not relation.field.rel.through._meta.auto_created
+ (getattr(relation.field.rel, 'through', None) is not None) and
+ not relation.field.rel.through._meta.auto_created
)
)