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
566c9362
Kaydet (Commit)
566c9362
authored
Nis 01, 2015
tarafından
Thomas Güttler
Kaydeden (comit)
Tim Graham
Nis 06, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added admonition about reusable apps and AUTH_USER_PROFILE.
üst
2cf58e80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
customizing.txt
docs/topics/auth/customizing.txt
+8
-0
No files found.
docs/topics/auth/customizing.txt
Dosyayı görüntüle @
566c9362
...
@@ -407,6 +407,14 @@ use as your User model.
...
@@ -407,6 +407,14 @@ use as your User model.
have a ForeignKey to each other and seeing how ``makemigrations`` resolves that
have a ForeignKey to each other and seeing how ``makemigrations`` resolves that
circular dependency if you want to see how it's usually done)
circular dependency if you want to see how it's usually done)
.. admonition:: Reusable apps and ``AUTH_USER_MODEL``
Reusable apps shouldn't implement a custom user model. A project may use
many apps, and two reusable apps that implemented a custom user model
couldn't be used together. If you need to store per user information in your
app, use a :class:`~django.db.models.ForeignKey` or
:class:`~django.db.models.OneToOneField` to ``settings.AUTH_USER_MODEL``
as described below.
Referencing the User model
Referencing the User 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