mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Make use of Token Meta attributes in TokenProxy
This commit is contained in:
parent
dff8ec147e
commit
35aec6c047
|
@ -48,6 +48,5 @@ class TokenProxy(Token):
|
|||
return self.user_id
|
||||
|
||||
class Meta:
|
||||
proxy = 'rest_framework.authtoken' in settings.INSTALLED_APPS
|
||||
abstract = not proxy
|
||||
proxy = not Token._meta.abstract
|
||||
verbose_name = "token"
|
||||
|
|
Loading…
Reference in New Issue
Block a user