fix "NameError"

fix "NameError: name 'CompatRelatedField' is not defined
Merge pull request #1418 from louisliutw/master

fix "NameError"