Пример #1
0
class Sample1(models.Model):
    name = fields.StringField()
    type = fields.StringField(choices=("A", "B"))
Пример #2
0
class Sample(models.Model):
    name = fields.StringField()
    value = fields.IntegerField()
Пример #3
0
 def get_field(self, *args, **kw):
     return super().get_field(fields.StringField(), *args, **kw)