摘要: 1. 复杂版 统计,通过跨表查询和timedate模块过滤找到 1 from django.db.models import Count 2 3 class TongJiView(View): 4 def today(self): 5 import datetime 6 today=datetime 阅读全文
posted @ 2018-11-20 21:58 逆欢 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 复习先知 复杂版 将字段设置联合唯一 1 class ClassStudyRecordView(View): 2 def get(self,request): 3 ClassStudyRecordlist=ClassStudyRecord.objects.all() 4 return render( 阅读全文
posted @ 2018-11-20 21:52 逆欢 阅读(480) 评论(1) 推荐(0) 编辑