Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion oauth2_provider/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django import forms

from .models import Application
from .models import get_application_model

Application = get_application_model()


class AllowForm(forms.Form):
Expand Down
2 changes: 2 additions & 0 deletions oauth2_provider/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@
'_SCOPES': ['example']
}

OAUTH2_PROVIDER_APPLICATION_MODEL = 'tests.TestApplication'

import django

if django.VERSION[:2] < (1, 6):
Expand Down