Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#8344 closed (fixed)

contrib.auth.models.User.get_profile() throws AttributeError not SiteProfileNotAvailable

Reported by: Jannis Leidel Owned by: Jannis Leidel
Component: contrib.auth Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

On line line 289 it checks if settings.AUTH_PROFILE_MODULE is set. This throws an AttributeError instead of the SiteProfileNotAvailable exception, if the setting is not given.

The attached patch fixes the issue.

Attachments (1)

get_profile.r8366.diff (597 bytes) - added by Jannis Leidel 8 years ago.
initial patch to fix get_profile()

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Jannis Leidel

Attachment: get_profile.r8366.diff added

initial patch to fix get_profile()

comment:1 Changed 8 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel

comment:2 Changed 8 years ago by Malcolm Tredinnick

milestone: 1.0
Triage Stage: UnreviewedAccepted

comment:3 Changed 8 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [8543]) Fixed #8344: make User.get_profile() work when settings.AUTH_PROFILE_MODULE is unset.

comment:4 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top