diff options
| author | Tim Graham <timograham@gmail.com> | 2015-10-02 10:32:46 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-02 11:28:03 -0400 |
| commit | aebe7800e809343d3c1a478628a25aebbad76df3 (patch) | |
| tree | c93eaa7a5df9dce88791786b3263f2937038dd30 | |
| parent | 1084b421f1b2db1e3a0bcc04ca86ecf4823c9c5b (diff) | |
[1.9.x] Refs #13637 -- Removed unused code in GenericRelatedObjectManager
Appears unused since 585b7acaa359fc1df07269c1a4b4756bdb6703f7.
Backport of 37a5a363215d7c0360ff0a8f57856d373e8c1629 from master
| -rw-r--r-- | django/contrib/contenttypes/fields.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index 9d5c47da9a..bb2565653b 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -5,7 +5,7 @@ from collections import defaultdict from django.contrib.contenttypes.models import ContentType from django.core import checks from django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist -from django.db import DEFAULT_DB_ALIAS, connection, models, router, transaction +from django.db import DEFAULT_DB_ALIAS, models, router, transaction from django.db.models import DO_NOTHING, signals from django.db.models.base import ModelBase, make_foreign_order_accessors from django.db.models.fields.related import ( @@ -468,12 +468,6 @@ def create_generic_related_manager(superclass, rel): content_type = ContentType.objects.db_manager(instance._state.db).get_for_model( instance, for_concrete_model=rel.field.for_concrete_model) self.content_type = content_type - - qn = connection.ops.quote_name - join_cols = rel.field.get_joining_columns(reverse_join=True)[0] - self.source_col_name = qn(join_cols[0]) - self.target_col_name = qn(join_cols[1]) - self.content_type_field_name = rel.field.content_type_field_name self.object_id_field_name = rel.field.object_id_field_name self.prefetch_cache_name = rel.field.attname |
