2023-10-10 09:52:52 +00:00
|
|
|
from django.db import models
|
2023-07-24 03:52:25 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2022-10-27 09:20:31 +00:00
|
|
|
from rest_framework.authtoken.models import Token
|
|
|
|
|
|
|
|
|
|
|
|
class PrivateToken(Token):
|
|
|
|
"""Inherit from auth token, otherwise migration is boring"""
|
2023-10-10 09:52:52 +00:00
|
|
|
date_last_used = models.DateTimeField(null=True, blank=True, verbose_name=_('Date last used'))
|
2022-10-27 09:20:31 +00:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
verbose_name = _('Private Token')
|