mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 05:24:00 +03:00
d0f7b04805
+ verbose_name in models.Token fields + Meta-options verbose_name & verbose_name_plural + Labels in AuthTokenSerializer fields in case of usages in Brousable API + provide AppConfig class as described in django documentation with verbose_name came through ugettext_lazy
8 lines
199 B
Python
8 lines
199 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
class AuthTokenConfig(AppConfig):
|
|
name = 'rest_framework.authtoken'
|
|
verbose_name = _("Auth Token")
|