[FIX] fields: make base_field recursive in case a field is inherits'ed across several models

This commit is contained in:
Raphael Collet 2015-03-03 10:34:51 +01:00
parent 04ba0e99a4
commit 983dcf193c
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ class Field(object):
@property
def base_field(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