Skip to content
Browse files

Fixed a breakage with ManyToManyFields in admin caused by r10139.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2c6c60c commit 6671b8b1cd388ccb16a734e9147f0c73638ebf48 @malcolmt malcolmt committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 django/db/models/fields/
8 django/db/models/fields/
@@ -644,6 +644,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 6671b8b

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