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
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) obj = Synonyms.objects.all() # 分页展示 context = pages(obj, self.request, context) return context
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
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) obj = Emotional.objects.all() context = pages(obj, self.request, context) return context