From 2cc3b417fae33cdd2f9c8ccbd00e22651a0c09ee Mon Sep 17 00:00:00 2001 From: Pierre Dulac Date: Fri, 16 Oct 2015 15:29:07 +0200 Subject: [PATCH] Fix the indentation --- rest_framework/utils/model_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/utils/model_meta.py b/rest_framework/utils/model_meta.py index 4027f422f..e51b57b37 100644 --- a/rest_framework/utils/model_meta.py +++ b/rest_framework/utils/model_meta.py @@ -147,7 +147,7 @@ def _get_reverse_relationships(opts): # The backward implementation can be found in the Django Documentation # See: https://docs.djangoproject.com/en/1.9/ref/models/meta/#migrating-from-the-old-api all_related_to_many_objects = [ - f for f in opts.get_fields(include_hidden=True) + f for f in opts.get_fields(include_hidden=True) if f.many_to_many and f.auto_created ]