Author: mtredinnick
Date: 2008-08-29 16:48:40 -0500 (Fri, 29 Aug 2008)
New Revision: 8723
Modified:
django/trunk/django/db/models/fields/related.py
Log:
Fixed a missing piece of [8721].
Modified: django/trunk/django/db/models/fields/related.py
===================================================================
--- django/trunk/django/db/models/fields/related.py 2008-08-29 21:41:50 UTC
(rev 8722)
+++ django/trunk/django/db/models/fields/related.py 2008-08-29 21:48:40 UTC
(rev 8723)
@@ -850,7 +850,7 @@
# 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.rel.to == "self" and
self.rel.related_name is None:
self.rel.related_name = "%s_rel_+" % name
super(ManyToManyField, self).contribute_to_class(cls, name)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---