user setting default ingredient unit

This commit is contained in:
vabene1111
2020-04-13 22:37:50 +02:00
parent 8eb0c36665
commit 4f49b06704
5 changed files with 24 additions and 3 deletions

View File

@ -31,10 +31,11 @@ class UserPreferenceForm(forms.ModelForm):
class Meta:
model = UserPreference
fields = ('theme', 'nav_color')
fields = ('default_unit', 'theme', 'nav_color')
help_texts = {
'nav_color': _('Color of the top navigation bar. Not all colors work with all themes, just try them out!')
'nav_color': _('Color of the top navigation bar. Not all colors work with all themes, just try them out!'),
'default_unit': _('Default Unit to be used when inserting a new ingredient into a recipe.')
}