Cheatography https://cheatography.com
MultipleObjectMixin(object) allow_empty | True | queryset | None | model | None | paginate_by | None | context_object_name | None "%(model_name)s_list" | paginator_class | Paginator | | | get_queryset() | queryset | paginate_queryset(self, queryset, page_size) | tuple | get_paginate_by(queryset) | int or None | get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True) | get_allow_empty() | bool | get_context_object_name(self, object_list) | string or None | get_context_data(self, **kwargs) | dict | | | BaseListView(MultipleObjectMixin, View) get(self, request, args, *kwargs) | MultipleObjectTemplateResponseMixin subclassing (TemplateResponseMixin) | template_name_suffix | '_list' | get_template_names(self) | list | ListView (MultipleObjectTemplateResponseMixin, BaseListView) | | | Admin list custom fields custom_field(obj) | .allow_tags | handy for links (bool) | .short_description | string | .admin_order_field | field name (string) | |
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets