diff options
| author | Tom Christie | 2015-02-17 10:58:00 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-02-17 10:58:00 +0000 | 
| commit | dbd23521656b366cbaa1382a0d222f8fe4e3a326 (patch) | |
| tree | 8fc86473ecc5097909250e0a9d5d440baabaf403 /rest_framework/utils | |
| parent | 76fe710c0d81cbf21f246de6026e7360179ea053 (diff) | |
| download | django-rest-framework-dbd23521656b366cbaa1382a0d222f8fe4e3a326.tar.bz2 | |
Fixes for latest pep8 updates. Refs #2563.
Diffstat (limited to 'rest_framework/utils')
| -rw-r--r-- | rest_framework/utils/model_meta.py | 4 | 
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              )          ) | 
