Seconds part of translations in models
This commit is contained in:
@ -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')
|
||||
|
@ -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.'))
|
||||
|
Reference in New Issue
Block a user