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