use class data instead of class method
make relations work for extend model syntax