How to change id field from uuid type to integer in a django model

后端 未结 0 743
清酒与你
清酒与你 2020-12-10 18:30

My model as exists it has the below format:

class MyModel(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题