Opened 16 years ago

Closed 16 years ago

Last modified 13 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: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 16 years ago.
initial patch to fix get_profile()

Download all attachments as: .zip

Change History (5)

by Jannis Leidel, 16 years ago

Attachment: get_profile.r8366.diff added

initial patch to fix get_profile()

comment:1 by Jannis Leidel, 16 years ago

Owner: changed from nobody to Jannis Leidel

comment:2 by Malcolm Tredinnick, 16 years ago

milestone: 1.0
Triage Stage: UnreviewedAccepted

comment:3 by Jacob, 16 years ago

Resolution: fixed
Status: newclosed

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

comment:4 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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