Check if avatars are enabled at runtime instead of startup
Review Request #8252 — Created June 19, 2016 and submitted — Latest diff uploaded
Previously, we would add the
AvatarSettingsForm
to theProfilePage
if, upon startup, the avatar services were enabled for the server.
However, this prevented creating a new database withmanage.py syncdb
.
We now use theis_visible
method on theProfileForm
to determine
whether or not it should be shown.
- Verified the avatar form is only shown when avatars are enabled.
- Ran unit tests.