diff options
Diffstat (limited to 'django/contrib/contenttypes/fields.py')
| -rw-r--r-- | django/contrib/contenttypes/fields.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index f28c346576..d85b61933a 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -199,8 +199,9 @@ class GenericForeignKey(FieldCacheMixin, Field): ct = self.get_content_type(id=ct_id, using=instance._state.db) ret_val.extend(ct.get_all_objects_for_this_type(pk__in=fkeys)) - # For doing the join in Python, we have to match both the FK val and the - # content type, so we use a callable that returns a (fk, class) pair. + # For doing the join in Python, we have to match both the FK val and + # the content type, so we use a callable that returns a (fk, class) + # pair. def gfk_key(obj): ct_id = getattr(obj, ct_attname) if ct_id is None: |
