small fixes

This commit is contained in:
vabene1111
2020-07-13 23:07:35 +02:00
parent 5b7ec37637
commit c45472689e
4 changed files with 32 additions and 37 deletions

View File

@ -143,20 +143,20 @@ class UnitMergeForm(forms.Form):
)
class IngredientMergeForm(forms.Form):
prefix = 'ingredient'
class FoodMergeForm(forms.Form):
prefix = 'food'
new_ingredient = forms.ModelChoiceField(
new_food = forms.ModelChoiceField(
queryset=Food.objects.all(),
widget=SelectWidget,
label=_('New Ingredient'),
help_text=_('New ingredient that other gets replaced by.'),
label=_('New Food'),
help_text=_('New food that other gets replaced by.'),
)
old_ingredient = forms.ModelChoiceField(
old_food = forms.ModelChoiceField(
queryset=Food.objects.all(),
widget=SelectWidget,
label=_('Old Ingredient'),
help_text=_('Ingredient that should be replaced.'),
label=_('Old Food'),
help_text=_('Food that should be replaced.'),
)