How to remove the prefix of a table for a Django model?

前端 未结 4 546
难免孤独
难免孤独 2020-12-28 16:17

I create a new Django app (not project) called Bussinesses, then add following class to the models.py.

class Bussinesses(models.Model):
    busi         


        
4条回答
  •  猫巷女王i
    2020-12-28 16:34

    you can actually set the table name manually using the meta class, more here: https://docs.djangoproject.com/en/dev/ref/models/options/

提交回复
热议问题