started migrating file editor page to generic model list
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user