Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed a missing piece of [8721].

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f3e088d commit 38362a12762d94e326a70fa5d1cce9ff2c80c0c5 @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/fields/
2  django/db/models/fields/
@@ -850,7 +850,7 @@ def contribute_to_class(self, cls, name):
# specify *what* on my non-reversible relation?!"), so we set it up
# automatically. The funky name reduces the chance of an accidental
# clash.
- if self.rel.symmetrical and self.rel.related_name is None:
+ if self.rel.symmetrical and == "self" and self.rel.related_name is None:
self.rel.related_name = "%s_rel_+" % name
super(ManyToManyField, self).contribute_to_class(cls, name)

0 comments on commit 38362a1

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