Hello, can this function be converted into a class

前端 未结 0 1631
说谎
说谎 2020-11-30 11:59

I have a function that transfers data to the index page,

def index(request):
    news = News.objects.all()[:3]
    sponsors = Sponsors.objects.all()[:6]
    p         


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