mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	+ 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")
 |