Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
cd7d7452
Kaydet (Commit)
cd7d7452
authored
Haz 13, 2013
tarafından
Danilo Bargen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed order of base classes in CBV mixin docs
üst
3ce1d303
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mixins.txt
docs/topics/class-based-views/mixins.txt
+3
-3
No files found.
docs/topics/class-based-views/mixins.txt
Dosyayı görüntüle @
cd7d7452
...
@@ -233,7 +233,7 @@ We'll demonstrate this with the publisher modelling we used in the
...
@@ -233,7 +233,7 @@ We'll demonstrate this with the publisher modelling we used in the
from django.views.generic.detail import SingleObjectMixin
from django.views.generic.detail import SingleObjectMixin
from books.models import Author
from books.models import Author
class RecordInterest(
View, SingleObjectMixin
):
class RecordInterest(
SingleObjectMixin, View
):
"""Records the current user's interest in an author."""
"""Records the current user's interest in an author."""
model = Author
model = Author
...
@@ -446,7 +446,7 @@ Our new ``AuthorDetail`` looks like this::
...
@@ -446,7 +446,7 @@ Our new ``AuthorDetail`` looks like this::
class AuthorInterestForm(forms.Form):
class AuthorInterestForm(forms.Form):
message = forms.CharField()
message = forms.CharField()
class AuthorDetail(
DetailView, FormMixin
):
class AuthorDetail(
FormMixin, DetailView
):
model = Author
model = Author
form_class = AuthorInterestForm
form_class = AuthorInterestForm
...
@@ -553,7 +553,7 @@ template as ``AuthorDisplay`` is using on ``GET``.
...
@@ -553,7 +553,7 @@ template as ``AuthorDisplay`` is using on ``GET``.
from django.views.generic import FormView
from django.views.generic import FormView
from django.views.generic.detail import SingleObjectMixin
from django.views.generic.detail import SingleObjectMixin
class AuthorInterest(
FormView, SingleObjectMixin
):
class AuthorInterest(
SingleObjectMixin, FormView
):
template_name = 'books/author_detail.html'
template_name = 'books/author_detail.html'
form_class = AuthorInterestForm
form_class = AuthorInterestForm
model = Author
model = Author
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment