File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,6 @@ def allow_scopes(self, scopes):
202202
203203 return resource_scopes .issubset (provided_scopes )
204204
205- def __str__ (self ):
206- return self .token
207-
208205
209206class AccessToken (AbstractAccessToken ):
210207 """
@@ -222,6 +219,9 @@ class AccessToken(AbstractAccessToken):
222219 """
223220 token = models .CharField (max_length = 255 , db_index = True )
224221
222+ def __str__ (self ):
223+ return self .token
224+
225225# Add swappable like this to not break django 1.4 compatibility
226226AccessToken ._meta .swappable = 'OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL'
227227
@@ -236,9 +236,6 @@ class AbstractRefreshToken(models.Model):
236236 class Meta :
237237 abstract = True
238238
239- def __str__ (self ):
240- return self .token
241-
242239
243240class RefreshToken (AbstractRefreshToken ):
244241 """
@@ -255,6 +252,9 @@ class RefreshToken(AbstractRefreshToken):
255252 """
256253 token = models .CharField (max_length = 255 , db_index = True )
257254
255+ def __str__ (self ):
256+ return self .token
257+
258258# Add swappable like this to not break django 1.4 compatibility
259259RefreshToken ._meta .swappable = 'OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL'
260260
You can’t perform that action at this time.
0 commit comments