示例#1
0
文件: views.py 项目: ifuxzrf/cms
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     obj = Things.objects.all()
     new_form = Things_form
     update_form = Things_form
     context['new_form'] = new_form
     context['update_form'] = update_form
     context = pages(obj, self.request, context)
     return context
示例#2
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     obj = Synonyms.objects.all()
     # 分页展示
     context = pages(obj, self.request, context)
     return context
示例#3
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     obj = Sensitive.objects.all()
     context['obj'] = obj
     context = pages(obj, self.request, context)
     return context
示例#4
0
文件: views.py 项目: ifuxzrf/cms
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     obj = Emotional.objects.all()
     context = pages(obj, self.request, context)
     return context