web.views.base module¶
Module with baseviews for the Eonvelope webapp.
- class web.views.base.FilterPageView(**kwargs)[source]¶
Bases:
PageSizeMixin,FilterViewAn extended
django_filters.views.FilterViewwith fixed pagination.
- class web.views.base.DetailWithDeleteView(**kwargs)[source]¶
Bases:
DetailView,DeletionMixinA view for model details with an option to delete.
- class web.views.base.UpdateOrDeleteView(**kwargs)[source]¶
Bases:
UpdateView,DeletionMixinA view that implements both updating and deleting.
- success_url: StrOrPromise | None = None¶
The URL to redirect to after form submission. If this is not set, the models get_absolute_url method is used.
- get_success_url()[source]¶
Overridden method to redirect to filter-list after delete else to detail.
- Return type: