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
b31a9149
Kaydet (Commit)
b31a9149
authored
Nis 02, 2018
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Nis 04, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented InlineModelAdmin.has_(add/change/delete)_permission().
üst
6148dda7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
index.txt
docs/ref/contrib/admin/index.txt
+16
-4
No files found.
docs/ref/contrib/admin/index.txt
Dosyayı görüntüle @
b31a9149
...
...
@@ -2231,12 +2231,9 @@ adds some of its own (the shared features are actually defined in the
- :meth:`~ModelAdmin.formfield_for_choice_field`
- :meth:`~ModelAdmin.formfield_for_foreignkey`
- :meth:`~ModelAdmin.formfield_for_manytomany`
- :meth:`~ModelAdmin.has_add_permission`
- :meth:`~ModelAdmin.has_change_permission`
- :meth:`~ModelAdmin.has_delete_permission`
- :meth:`~ModelAdmin.has_module_permission`
The ``InlineModelAdmin`` class adds:
The ``InlineModelAdmin`` class adds
or customizes
:
.. attribute:: InlineModelAdmin.model
...
...
@@ -2398,6 +2395,21 @@ The ``InlineModelAdmin`` class adds:
inline forms. For example, this may be based on the model instance
(passed as the keyword argument ``obj``).
.. method:: InlineModelAdmin.has_add_permission(request)
Should return ``True`` if adding an inline object is permitted, ``False``
otherwise.
.. method:: InlineModelAdmin.has_change_permission(request, obj=None)
Should return ``True`` if editing an inline object is permitted, ``False``
otherwise. ``obj`` is the parent object being edited.
.. method:: InlineModelAdmin.has_delete_permission(request, obj=None)
Should return ``True`` if deleting an inline object is permitted, ``False``
otherwise. ``obj`` is the parent object being edited.
Working with a model with two or more foreign keys to the same parent model
---------------------------------------------------------------------------
...
...
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