Skip to content

Commit

Permalink
Implemented Verbose Name Translation for TokenProxy (encode#8713)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giebisch authored Nov 27, 2022
1 parent 52f4139 commit 4ef0fc1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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'},
),
]
3 changes: 2 additions & 1 deletion rest_framework/authtoken/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ def pk(self):
class Meta:
proxy = 'rest_framework.authtoken' in settings.INSTALLED_APPS
abstract = 'rest_framework.authtoken' not in settings.INSTALLED_APPS
verbose_name = "token"
verbose_name = _("Token")
verbose_name_plural = _("Tokens")

0 comments on commit 4ef0fc1

Please sign in to comment.