2020-06-05 12:38:25 +02:00
|
|
|
"""
|
|
|
|
!!!AUTOGENERATED: DO NOT EDIT!!!
|
|
|
|
|
|
|
|
Edit the hooks in webapp/routes/[[ name|camel_to_snake ]]_hooks.py instead
|
|
|
|
"""
|
|
|
|
|
|
|
|
from oshipka.webapp import app
|
|
|
|
from oshipka.webapp.views import ModelView
|
|
|
|
from webapp.models import [[ name ]]
|
|
|
|
from webapp.routes.[[ name|camel_to_snake ]]_hooks import *
|
|
|
|
|
2020-06-07 13:13:14 +02:00
|
|
|
[[ name|camel_to_snake ]] = ModelView(app, [[name]])
|
|
|
|
[[ name|camel_to_snake ]].register_get(view_context=get_view_context)
|
|
|
|
[[ name|camel_to_snake ]].register_list(view_context=list_view_context)
|
|
|
|
[[ name|camel_to_snake ]].register_search(view_context=search_view_context)
|
|
|
|
[[ name|camel_to_snake ]].register_create(view_context=create_view_context)
|
|
|
|
[[ name|camel_to_snake ]].register_update(view_context=update_view_context)
|
|
|
|
[[ name|camel_to_snake ]].register_delete(view_context=delete_view_context)
|