mongodb - Django table column is a number -
is there way if database column uses number (0,1,2,3,4,5) set django model? database created mongodb, can't make changes it, easy/fast workaround?
you can set django model different field names , set db_column param each field corresponds database column name. example:
class example(models.model): firstfield = models.integerfield(db_column='0') secondfield = models.charfield(db_column='1') ...
Comments
Post a Comment