added recipe properties

This commit is contained in:
vabene1111
2023-05-06 19:14:25 +02:00
parent 763f71a05c
commit 60f31608b9
17 changed files with 1099 additions and 735 deletions

View File

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