Ticket #3323: django.db.models.options.rev6263.diff
File django.db.models.options.rev6263.diff, 670 bytes (added by , 17 years ago) |
---|
-
django/db/models/options.py
186 186 rel_objs = [] 187 187 for klass in get_models(): 188 188 for f in klass._meta.many_to_many: 189 if f.rel and isinstance(f.rel.to, str): 190 raise Exception("class %s has unresolved string relation" % klass) 189 191 if f.rel and self == f.rel.to._meta: 190 192 rel_objs.append(RelatedObject(f.rel.to, klass, f)) 191 193 if app_cache_ready():