Ticket #3323: django.db.models.options.rev6263.diff

File django.db.models.options.rev6263.diff, 670 bytes (added by Adam Vollrath, 17 years ago)

similar hackish fix for ManyToManyField

  • django/db/models/options.py

     
    186186            rel_objs = []
    187187            for klass in get_models():
    188188                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)
    189191                    if f.rel and self == f.rel.to._meta:
    190192                        rel_objs.append(RelatedObject(f.rel.to, klass, f))
    191193            if app_cache_ready():
Back to Top