Ticket #7908: 7908.patch
File 7908.patch, 610 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/related.py
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index ca25df2..1e1c3bd 100644
a b class RelatedField(object): 122 122 related = RelatedObject(other, cls, self) 123 123 if not cls._meta.abstract: 124 124 self.contribute_to_related_class(other, related) 125 else: 126 raise TypeError, "Related Model is abstract: %s" % cls.__name__ 125 127 126 128 def get_db_prep_lookup(self, lookup_type, value): 127 129 # If we are doing a lookup on a Related Field, we must be