food inherit attributes

This commit is contained in:
smilerz
2021-10-19 08:35:33 -05:00
parent 2ca7722afb
commit 6075ce50e7
13 changed files with 252 additions and 336 deletions

View File

@ -45,8 +45,7 @@ class UserPreferenceForm(forms.ModelForm):
fields = (
'default_unit', 'use_fractions', 'use_kj', 'theme', 'nav_color',
'sticky_navbar', 'default_page', 'show_recent', 'search_style',
'plan_share', 'shopping_share', 'ingredient_decimals', 'shopping_auto_sync',
'comments'
'plan_share', 'ingredient_decimals', 'comments',
)
labels = {
@ -93,7 +92,8 @@ class UserPreferenceForm(forms.ModelForm):
widgets = {
'plan_share': MultiSelectWidget,
'shopping_share': MultiSelectWidget
'shopping_share': MultiSelectWidget,
}