Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.0.X] Fixed a breakage with ManyToManyFields in admin caused by r10…

…140. Refs #9994.

Merge of r10170 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent dce8fdb commit 2e059204018379a635a89a6ec3addc2d1e45cc49 @freakboy3742 freakboy3742 committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 django/db/models/fields/
8 django/db/models/fields/
@@ -637,6 +637,14 @@ def __init__(self, to, related_name=None, limit_choices_to=None,
self.multiple = True
self.through = through
+ def get_related_field(self):
+ """
+ Returns the field in the to' object to which this relationship is tied
+ (this is always the primary key on the target model). Provided for
+ symmetry with ManyToOneRel.
+ """
+ return
class ForeignKey(RelatedField, Field):
empty_strings_allowed = False
def __init__(self, to, to_field=None, rel_class=ManyToOneRel, **kwargs):

0 comments on commit 2e05920

Please sign in to comment.
Something went wrong with that request. Please try again.