get_profile / get_model issue, capitalisation of AUTH_PROFILE_MODULE
|Reported by:||anonymous||Owned by:||Jacob|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by )
The docs lead one to expect that given an app name
AUTH_PROFILE_MODULE setting of
profile.modelname would work, but
Profile.modelname is actually correct.
http://docs.djangoproject.com/en/dev/topics/auth/#auth-profiles claims that
AUTH_PROFILE_MODULE is "The (normalized to lower-case) name of the application in which the user profile model is defined (in other words, an all-lowercase version of the name which was passed to
manage.py startapp to create the application)."
This is wrong; the
app_label part is the a python module, and hence case-sensitive.
Change History (9)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|
comment:2 Changed 8 years ago by
|Triage Stage:||Unreviewed → Accepted|