fix Note
This commit is contained in:
@@ -74,6 +74,7 @@ class Note(models.Model):
|
|||||||
return
|
return
|
||||||
for f in self._meta.get_fields():
|
for f in self._meta.get_fields():
|
||||||
if f.is_relation and f.one_to_one:
|
if f.is_relation and f.one_to_one:
|
||||||
|
if hasattr(self, f.name):
|
||||||
self._child_instance = getattr(self, f.name)
|
self._child_instance = getattr(self, f.name)
|
||||||
self._child_class = self._child_instance.__class__
|
self._child_class = self._child_instance.__class__
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user