Skip to content

Commit 20ec7ba

Browse files
Aristobulo Menesesjleclanche
authored andcommitted
Declare sample models for access_token, refresh_token and grant.
1 parent 2a13b98 commit 20ec7ba

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tests/models.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
from django.db import models
22

3-
from oauth2_provider.models import AbstractApplication
3+
from oauth2_provider.models import (
4+
AbstractApplication,
5+
AbstractAccessToken,
6+
AbstractGrant,
7+
AbstractRefreshToken,
8+
)
49

510

611
class SampleApplication(AbstractApplication):
712
custom_field = models.CharField(max_length=255)
13+
14+
15+
class SampleAccessToken(AbstractAccessToken):
16+
custom_field = models.CharField(max_length=255)
17+
18+
19+
class SampleRefreshToken(AbstractRefreshToken):
20+
custom_field = models.CharField(max_length=255)
21+
22+
23+
class SampleGrant(AbstractGrant):
24+
custom_field = models.CharField(max_length=255)

0 commit comments

Comments
 (0)