mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-04-12 09:20:58 +00:00
Capitalize group_fieldsets titles (close #234).
This commit is contained in:
parent
85ddf84b8f
commit
cbca220103
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ class TranslationAdmin(TranslationBaseModelAdmin, admin.ModelAdmin):
|
|||
# Extract the original field's verbose_name for use as this
|
||||
# fieldset's label - using ugettext_lazy in your model
|
||||
# declaration can make that translatable.
|
||||
label = self.model._meta.get_field(orig_field).verbose_name
|
||||
label = self.model._meta.get_field(orig_field).verbose_name.capitalize()
|
||||
temp_fieldsets[orig_field] = (label, {
|
||||
'fields': trans_fieldnames,
|
||||
'classes': ('mt-fieldset',)
|
||||
|
|
|
|||
Loading…
Reference in a new issue