From 322336c382577f130249ee92fd006d505b5a9c39 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 28 Jan 2006 00:14:28 +0000 Subject: [PATCH] magic-removal: Reworded comment from [2141] git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2142 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/fields/related.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 6d786b1c70..fc1c3cb0cb 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -86,7 +86,8 @@ class RelatedObjectDescriptor(object): self.manager.core_filters = {'%s__%s__exact' % (rel_field.name, rel_field.rel.to._meta.pk.name): getattr(instance, rel_field.rel.get_related_field().attname)} # Prepare the manager. - # TODO: We need to set self.manager.klass because + # TODO: Fix this hack? + # We're setting self.manager.klass here because # self.manager._prepare() expects that self.manager.klass is # set. This is slightly hackish. self.manager.klass = self.related.model