Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Refs #1796 -- Fixed a problem when creating models with relations to

themselves: more than one instance was being created.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d03bc7771693a96a3075ba8c10364bb40585b386 1 parent 6ea0a13
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/fields/
2  django/db/models/fields/
@@ -25,7 +25,7 @@ def add_lookup(rel_cls, field):
key = (module, name)
# Has the model already been loaded?
# If so, resolve the string reference right away
- model = get_model(rel_cls._meta.app_label,
+ model = get_model(rel_cls._meta.app_label,, False)
if model: = model
field.do_related_class(model, rel_cls)
Please sign in to comment.
Something went wrong with that request. Please try again.