class Sample1(models.Model): name = fields.StringField() type = fields.StringField(choices=("A", "B"))
class Sample(models.Model): name = fields.StringField() value = fields.IntegerField()
def get_field(self, *args, **kw): return super().get_field(fields.StringField(), *args, **kw)