Closed tkhyn closed 9 years ago
Original comment by Rod Morison (Bitbucket: rmorison, GitHub: rmorison).
Looks like a typo. Not worth a pr...
#!python
+++ gm2m/relations.py 2014-12-04 14:43:07.420305898 -0800
@@ -273,7 +273,7 @@
def resolve_related_class(rel, model, cls):
rel.to = model
rel.do_related_class()
- add_lazy_relation(self.fields.model, self, self.to,
+ add_lazy_relation(self.field.model, self, self.to,
resolve_related_class)
else:
self.do_related_class()
Original report by Rod Morison (Bitbucket: rmorison, GitHub: rmorison).
I get this only when adding explicit models to the fields constructor, e.g.,
If I remove the args to the constructor, makemigrations works.