📌  相关文章
📜  django rest 框架中的用户序列化器 - Python 代码示例

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

代码示例3
class Event(models.Model):
    user = models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
    date = models.DateTimeField(default=timezone.now)
    place = models.CharField(max_length=255)