Skip to content

Commit 90e276b

Browse files
committed
Implemented Verbose Name Translation for TokenProxy
1 parent 35c5be6 commit 90e276b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_framework/authtoken/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ def pk(self):
5151
class Meta:
5252
proxy = 'rest_framework.authtoken' in settings.INSTALLED_APPS
5353
abstract = 'rest_framework.authtoken' not in settings.INSTALLED_APPS
54-
verbose_name = "token"
54+
verbose_name = _("Token")
55+
verbose_name_plural = _("Tokens")

0 commit comments

Comments
 (0)