Update to the new bootstrappable model format
This commit is contained in:
@@ -19,7 +19,15 @@ dependencies = ['app_registry', 'icons', 'navigation', 'metadata']
|
||||
icon = icon_index_setup
|
||||
setup_links = [index_setup]
|
||||
menu_links = [link_menu]
|
||||
bootstrap_models = ['index', 'indextemplatenode']
|
||||
bootstrap_models = [
|
||||
{
|
||||
'name': 'index',
|
||||
},
|
||||
{
|
||||
'name': 'indextemplatenode',
|
||||
'sanitize': False,
|
||||
}
|
||||
]
|
||||
|
||||
settings = [
|
||||
{
|
||||
|
||||
@@ -32,7 +32,14 @@ description = _(u'Base app that handles documents instances.')
|
||||
icon = icon_documents
|
||||
dependencies = ['app_registry', 'icons', 'storage', 'permissions', 'navigation']
|
||||
setup_links = [document_type_setup]
|
||||
bootstrap_models = ['documenttype', 'documenttypefilename']
|
||||
bootstrap_models = [
|
||||
{
|
||||
'name': 'documenttype',
|
||||
},
|
||||
{
|
||||
'name': 'documenttypefilename',
|
||||
}
|
||||
]
|
||||
#AppBackup(app, [ModelBackup(), FileBackup(document_settings.STORAGE_BACKEND)])
|
||||
|
||||
settings = [
|
||||
|
||||
Reference in New Issue
Block a user