File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 3
3
from fnmatch import fnmatch
4
4
5
5
from django .core .exceptions import ValidationError
6
- from django .db import models
7
- from oauth2_provider .models import AbstractApplication
6
+ from oauth2_provider .models import Application
8
7
9
8
10
- class StagingApplication (AbstractApplication ):
9
+ class StagingApplication (Application ):
11
10
"""
12
11
Custom OAuth Toolkit `Application` model to allow wildcards to be used in redirect URIs.
13
12
14
13
This is ONLY used in staging; the standard `oauth2_provider.models.Application` is used
15
14
in production and local development.
16
15
"""
17
16
18
- # The default value of `skip_authorization` in `AbstractApplication` is `False`; we
19
- # override that default here for staging.
20
- skip_authorization = models .BooleanField (default = True )
17
+ class Meta :
18
+ proxy = True
21
19
22
20
def clean (self ):
23
21
"""
You can’t perform that action at this time.
0 commit comments