Home
About
Blog
Courses
Contact
More about Django
· Module 3 - Class-based views
3.4 Mixins and your own base views
20 min
Back to the curriculum
Video coming soon
The recording for this lesson has not been published yet.
What we cover
LoginRequiredMixin and UserPassesTestMixin
Method resolution order and mixin ordering
An AuthorRequiredMixin for the blog
A project-wide base view class
Written notes for this lesson are being prepared. The outline above already shows what the recording will cover.
← 3.3 CreateView, UpdateView and DeleteView
3.5 Function view or class-based view? →
After this lesson you will
Restrict views to logged-in or allowed users
Extract shared view behaviour into a mixin
Module 3
3.1
Why class-based views
3.2
ListView and DetailView
3.3
CreateView, UpdateView and DeleteView
3.4
Mixins and your own base views
3.5
Function view or class-based view?