mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
Implemented Verbose Name Translation for TokenProxy (#8713)
This commit is contained in:
parent
52f4139674
commit
4ef0fc1ca0
|
@ -0,0 +1,17 @@
|
||||||
|
# Generated by Django 4.1.3 on 2022-11-24 21:07
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('authtoken', '0003_tokenproxy'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='tokenproxy',
|
||||||
|
options={'verbose_name': 'Token', 'verbose_name_plural': 'Tokens'},
|
||||||
|
),
|
||||||
|
]
|
|
@ -51,4 +51,5 @@ class TokenProxy(Token):
|
||||||
class Meta:
|
class Meta:
|
||||||
proxy = 'rest_framework.authtoken' in settings.INSTALLED_APPS
|
proxy = 'rest_framework.authtoken' in settings.INSTALLED_APPS
|
||||||
abstract = 'rest_framework.authtoken' not in settings.INSTALLED_APPS
|
abstract = 'rest_framework.authtoken' not in settings.INSTALLED_APPS
|
||||||
verbose_name = "token"
|
verbose_name = _("Token")
|
||||||
|
verbose_name_plural = _("Tokens")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user