摘要:
```python# 实际项目表设计from django.db import models# Create your models here.# rbac权限相关表格class User(models.Model): name = models.CharField(max_length=32) pwd = models.CharField(max_length=32) role... 阅读全文
摘要:
ORM查询优化 only与defer res = models.Book.objects.all().values('title') print(res) # <QuerySet [{'title': '三国演义'}, {'title': '红楼梦'}, {'title': '水浒传'}, {'ti 阅读全文