magic-removal: Reworded comment from [2141]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b22ebaf466
commit
322336c382
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue