📜  django 模型 UUID 字段 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:52.626000             🧑  作者: Mango

代码示例1
import uuid
from django.db import models

class MyUUIDModel(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    # other fields