Open Bug 1917295 Opened 2 years ago Updated 2 years ago

Manually created users do not have a profile, which causes some errors in the UI

Categories

(Conduit :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: zeid, Unassigned)

References

Details

(Keywords: good-first-bug)

If a user is created without logging in via Auth0 (e.g., via the admin UI), they do not get a profile associated with the user object and this causes issues in the UI. For example, in navbar.html on this line:

<img src="{{ request.user.profile.userinfo['picture']|avatar_url }}" />

Which results in:

'django.utils.functional.SimpleLazyObject object' has no attribute 'profile'

See this Sentry issue for more info.

Keywords: good-first-bug
You need to log in before you can comment on or make changes to this bug.