started migrating file editor page to generic model list

This commit is contained in:
vabene1111
2021-10-13 15:03:59 +02:00
parent 38c0d01dc1
commit 1b1945d954
11 changed files with 247 additions and 87 deletions

View File

@ -200,6 +200,20 @@ def automation(request):
)
@group_required('user')
def user_file(request):
return render(
request,
'generic/model_template.html',
{
"title": _("Files"),
"config": {
'model': "USERFILE", # *REQUIRED* name of the model in models.js
}
}
)
@group_required('user')
def shopping_list_new(request):
# recipe-param is the name of the parameters used when filtering recipes by this attribute
@ -213,4 +227,4 @@ def shopping_list_new(request):
'model': "SHOPPING_LIST", # *REQUIRED* name of the model in models.js
}
}
)
)