Check if avatars are enabled at runtime instead of startup
Review Request #8252 — Created June 19, 2016 and submitted
Previously, we would add the
AvatarSettingsFormto 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_visiblemethod on theProfileFormto determine
whether or not it should be shown.
- Verified the avatar form is only shown when avatars are enabled.
- Ran unit tests.
Tool: Pyflakes Processed Files: reviewboard/avatars/__init__.py reviewboard/accounts/forms/pages.py Tool: PEP8 Style Checker Processed Files: reviewboard/avatars/__init__.py reviewboard/accounts/forms/pages.py