Fix the OAuth app on Django 1.11.

Review Request #10523 — Created April 10, 2019 and submitted

chipx86
Review Board
release-4.0.x
reviewboard

Our reviewboard.oauth app had an app label of reviewboard_oauth,
which didn't match any other references to the app. The custom label
affected admin URLs, the label for the app in the database UI (though
this is easily correctable), and some internal machinery of the
oauth2_provider module. This only applied on Django 1.7+, meaning that
we had a major discrepency between 1.6 and newer versions.

To keep things compatible with what we've had in the past, we're going
to continue using an app label of oauth.

We're also lazily importing the method for enabling OAuth2 scopes, in
order to avoid breaking the Django app initialization process.

Unit tests pass on Django 1.6 and 1.11.

Summary
Fix the OAuth app on Django 1.11.
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (2e64506)
Loading...