basic food property calculation

This commit is contained in:
vabene1111
2023-03-25 07:46:06 +01:00
parent 9241638686
commit 6d5592c1be
17 changed files with 228 additions and 195 deletions

View File

@ -246,15 +246,15 @@ def unit_conversion(request):
@group_required('user')
def nutrition_type(request):
def food_property_type(request):
# model-name is the models.js name of the model, probably ALL-CAPS
return render(
request,
'generic/model_template.html',
{
"title": _("Unit Conversions"),
"title": _("Food Property Types"),
"config": {
'model': "NUTRITION_TYPE", # *REQUIRED* name of the model in models.js
'model': "FOOD_PROPERTY_TYPE", # *REQUIRED* name of the model in models.js
}
}
)