How to return count value for corresponding query row in python django render template?

前端 未结 0 636
独厮守ぢ
独厮守ぢ 2020-12-12 14:41

views.py

 def stu_view(request):
   ug = department.objects.all().filter(mode=\'UG\')
   pg = department.objects.all().filter(mode=\'PG\')
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题