How to show only one objects if there are few in Django?

后端 未结 0 472
庸人自扰
庸人自扰 2021-02-11 17:46

I\'m trying to user a list but still it shows all the values.

allexpelorer1    = Destination.objects.filter(destination = pk).order_by(\'-pk\')
allexpelorer = []
         


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