Ticket #11760: MtoM_abstract_through.patch
File MtoM_abstract_through.patch, 645 bytes (added by , 15 years ago) |
---|
-
related.py
934 934 if isinstance(self.rel.through, basestring): 935 935 def resolve_through_model(field, model, cls): 936 936 field.rel.through_model = model 937 if not cls._meta.abstract and self.rel.through: 938 self.rel.through = self.rel.through % {'class': cls.__name__} 937 939 add_lazy_relation(cls, self, self.rel.through, resolve_through_model) 938 940 elif self.rel.through: 939 941 self.rel.through_model = self.rel.through