Skip to content

Commit

Permalink
Fixed order of base classes in CBV mixin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Jun 13, 2013
1 parent 3ce1d30 commit cd7d745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/topics/class-based-views/mixins.txt
Expand Up @@ -233,7 +233,7 @@ We'll demonstrate this with the publisher modelling we used in the
from django.views.generic.detail import SingleObjectMixin
from books.models import Author

class RecordInterest(View, SingleObjectMixin):
class RecordInterest(SingleObjectMixin, View):
"""Records the current user's interest in an author."""
model = Author

Expand Down Expand Up @@ -446,7 +446,7 @@ Our new ``AuthorDetail`` looks like this::
class AuthorInterestForm(forms.Form):
message = forms.CharField()

class AuthorDetail(DetailView, FormMixin):
class AuthorDetail(FormMixin, DetailView):
model = Author
form_class = AuthorInterestForm

Expand Down Expand Up @@ -553,7 +553,7 @@ template as ``AuthorDisplay`` is using on ``GET``.
from django.views.generic import FormView
from django.views.generic.detail import SingleObjectMixin

class AuthorInterest(FormView, SingleObjectMixin):
class AuthorInterest(SingleObjectMixin, FormView):
template_name = 'books/author_detail.html'
form_class = AuthorInterestForm
model = Author
Expand Down

0 comments on commit cd7d745

Please sign in to comment.