flake8
passed.
JSHint
passed.
Review Request #9058 — Created July 7, 2017 and submitted
We were accidentally importing the
reviewboard.oauth.adminmodule too
early, causingadmin.autodiscover()to never be called (because we had
already registered ourApplicationmodel). This was leading to only
oauth2_providerandreviewboard.oauthmodels being shown in the
admin site DB page. Importing the admin in a function scope fixes this
issue.
With this patch applied, models get registered correctly.