I am looking in to it, and realized that there ia a better, simple and more
elegant way.

In Django models, it is very commom to use a subclass named Meta, so I will
try to run something like.


class Dog(BaseModel):
     self.name = Field("name")
     self.guardian = Field("guardian", "reference guardian")

     class Meta:
          tablename = "dog"
          migrate = False
          ...


I will try it today...

Reply via email to