[FIX] fields: make base_field recursive in case a field is inherits'ed across several models
This commit is contained in:
parent
04ba0e99a4
commit
983dcf193c
|
@ -528,7 +528,7 @@ class Field(object):
|
||||||
@property
|
@property
|
||||||
def base_field(self):
|
def base_field(self):
|
||||||
""" Return the base field of an inherited field, or `self`. """
|
""" Return the base field of an inherited field, or `self`. """
|
||||||
return self.related_field if self.inherited else self
|
return self.related_field.base_field if self.inherited else self
|
||||||
|
|
||||||
#
|
#
|
||||||
# Setup of field triggers
|
# Setup of field triggers
|
||||||
|
|
Loading…
Reference in New Issue