Changed metafields base class to models.Model