Seconds part of translations in models

This commit is contained in:
2020-05-19 16:13:34 +02:00
parent 7c4ca62a2d
commit 65f3d73a47
5 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,5 @@
from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from .models import Schedule
@ -14,3 +15,4 @@ class ScheduleAdmin(admin.ModelAdmin):
return obj.done
done.boolean = True
done.short_description = _('Done')

View File

@ -69,7 +69,7 @@ class Schedule(MetaDataModel):
INVALID = 'invalid', _('Invalid')
FAILURE = 'failure', _('Failure')
employee = models.ForeignKey(Employee, on_delete=models.CASCADE, help_text=_('Select the employee that is responsible for this schedule request'))
employee = models.ForeignKey(Employee, verbose_name=Employee._meta.verbose_name, on_delete=models.CASCADE, help_text=_('Select the employee that is responsible for this schedule request'))
name = models.CharField(_('Name'), max_length=100, help_text=_('Name of the schedule'))
email = models.CharField(_('Email address'), max_length=100, help_text=_('Email address where the results will be sent to.'))