forked from beba/foerderbarometer
WM-12: changed some labels & verbose names
This commit is contained in:
parent
864eb031ed
commit
ce1baef528
|
|
@ -125,6 +125,11 @@ class ProjectForm(BaseProjectForm, BaseApplicationForm):
|
||||||
'insurance',
|
'insurance',
|
||||||
'notes',
|
'notes',
|
||||||
]
|
]
|
||||||
|
labels = {
|
||||||
|
'cost': 'Kosten in Euro',
|
||||||
|
'insurance': 'Haftpflicht- und Unfallversicherung gewünscht',
|
||||||
|
'participants_estimated': 'Voraussichtliche Zahl der Teilnehmenden',
|
||||||
|
}
|
||||||
widgets = {
|
widgets = {
|
||||||
'start': AdminDateWidget,
|
'start': AdminDateWidget,
|
||||||
'end': AdminDateWidget,
|
'end': AdminDateWidget,
|
||||||
|
|
@ -178,6 +183,10 @@ class TravelForm(BaseApplicationForm):
|
||||||
'hotel',
|
'hotel',
|
||||||
'notes',
|
'notes',
|
||||||
]
|
]
|
||||||
|
labels = {
|
||||||
|
'checkin': 'Datum der Anreise',
|
||||||
|
'checkout': 'Datum der Abreise',
|
||||||
|
}
|
||||||
widgets = {
|
widgets = {
|
||||||
'checkin': AdminDateWidget,
|
'checkin': AdminDateWidget,
|
||||||
'checkout': AdminDateWidget,
|
'checkout': AdminDateWidget,
|
||||||
|
|
@ -202,6 +211,9 @@ class LibraryForm(BaseApplicationForm):
|
||||||
'duration',
|
'duration',
|
||||||
'notes',
|
'notes',
|
||||||
]
|
]
|
||||||
|
labels = {
|
||||||
|
'cost': 'Kosten in Euro',
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,12 @@ class Migration(migrations.Migration):
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='ifg',
|
model_name='ifg',
|
||||||
name='notes',
|
name='notes',
|
||||||
field=models.TextField(blank=True, help_text='Bitte gib an wofür Du das Stipendium verwenden willst.', max_length=1000, verbose_name='Anmerkungen'),
|
field=models.TextField(blank=True, help_text='Bitte gib an, wofür Du das Stipendium verwenden willst.', max_length=1000, verbose_name='Anmerkungen'),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='library',
|
model_name='library',
|
||||||
name='notes',
|
name='notes',
|
||||||
field=models.TextField(blank=True, help_text='Bitte gib an wofür Du das Stipendium verwenden willst.', max_length=1000, verbose_name='Anmerkungen'),
|
field=models.TextField(blank=True, help_text='Bitte gib an, wofür Du das Stipendium verwenden willst.', max_length=1000, verbose_name='Anmerkungen'),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='library',
|
model_name='library',
|
||||||
|
|
@ -33,7 +33,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='literature',
|
model_name='literature',
|
||||||
name='notes',
|
name='notes',
|
||||||
field=models.TextField(blank=True, help_text='Bitte gib an wofür Du das Stipendium verwenden willst.', max_length=1000, verbose_name='Anmerkungen'),
|
field=models.TextField(blank=True, help_text='Bitte gib an, wofür Du das Stipendium verwenden willst.', max_length=1000, verbose_name='Anmerkungen'),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='project',
|
model_name='project',
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,8 @@ class Migration(migrations.Migration):
|
||||||
('order', models.PositiveIntegerField(verbose_name='Reihenfolge')),
|
('order', models.PositiveIntegerField(verbose_name='Reihenfolge')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name': 'Wikimedia Projekt',
|
'verbose_name': 'Wikimedia-Projekt',
|
||||||
'verbose_name_plural': 'Wikimedia Projekte',
|
'verbose_name_plural': 'Wikimedia-Projekte',
|
||||||
'ordering': ['order'],
|
'ordering': ['order'],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='project',
|
model_name='project',
|
||||||
name='wikimedia_projects',
|
name='wikimedia_projects',
|
||||||
field=input.models.ProjectCategoryField(related_name='projects', to='input.wikimediaproject', verbose_name='Wikimedia Projekte'),
|
field=input.models.ProjectCategoryField(related_name='projects', to='input.wikimediaproject', verbose_name='Wikimedia-Projekte'),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='project',
|
model_name='project',
|
||||||
name='wikimedia_projects_other',
|
name='wikimedia_projects_other',
|
||||||
field=models.CharField(blank=True, max_length=200, verbose_name='Wikimedia Projekte (Anderes)'),
|
field=models.CharField(blank=True, max_length=200, verbose_name='Wikimedia-Projekte (Anderes)'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -142,8 +142,8 @@ class WikimediaProject(BaseProjectCategory):
|
||||||
OTHER = 'Anderes'
|
OTHER = 'Anderes'
|
||||||
|
|
||||||
class Meta(BaseProjectCategory.Meta):
|
class Meta(BaseProjectCategory.Meta):
|
||||||
verbose_name = 'Wikimedia Projekt'
|
verbose_name = 'Wikimedia-Projekt'
|
||||||
verbose_name_plural = 'Wikimedia Projekte'
|
verbose_name_plural = 'Wikimedia-Projekte'
|
||||||
|
|
||||||
|
|
||||||
class ProductCategoryChoiceIterator(ModelMultipleChoiceField.iterator):
|
class ProductCategoryChoiceIterator(ModelMultipleChoiceField.iterator):
|
||||||
|
|
@ -400,7 +400,7 @@ class Grant(RequestUrlMixin, Extern):
|
||||||
cost = models.CharField(max_length=10, verbose_name='Kosten',
|
cost = models.CharField(max_length=10, verbose_name='Kosten',
|
||||||
help_text='Bitte gib die ungefähr zu erwartenden Kosten in Euro an.')
|
help_text='Bitte gib die ungefähr zu erwartenden Kosten in Euro an.')
|
||||||
notes = models.TextField(max_length=1000, blank=True, verbose_name='Anmerkungen',
|
notes = models.TextField(max_length=1000, blank=True, verbose_name='Anmerkungen',
|
||||||
help_text='Bitte gib an wofür Du das Stipendium verwenden willst.')
|
help_text='Bitte gib an, wofür Du das Stipendium verwenden willst.')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue