How to write a condition use django queryset

后端 未结 0 1554
攒了一身酷
攒了一身酷 2021-01-30 12:01

I write a if else statement to user but it not working. I get data form database use Post.objects.get(sno = delpk). Then i writer a condition request.user.use

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