models.py
class UserWay(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
created_at = models.DateField()
views.py
to_date = request.GET.get('to_date',None)
from_date = request.GET.get('from_date', None)
while to_date >= from_date:
r = r + 1
ws.write(0,r,current_date,style)
to_date -= timedelta(days = 1)
用户将每天填写表单即将存储的表单。我的问题是需要显示填写表格日期范围的日期。每一天只有一次填写