Django
Class ListView()
nickas
2019. 7. 13. 17:53
context를 수정하고 싶을 때
def get_context_data
queryset를 수정하고 싶을 때
def get_context_object_name
request에서 값을 찾을 때
self.request.GET.get('','')
http://ccbv.co.uk/projects/Django/2.2/django.views.generic.list/ListView/
ListView -- Classy CBV
def get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True, **kwargs): """Return an instance of the paginator for this view.""" return self.paginator_class( queryset, per_page, orphans=orphans, allow_empty_first_page=allow_empty_fir
ccbv.co.uk