Update the smart link app to use Django templating language. gh-issues #151.

This commit is contained in:
Roberto Rosario
2015-07-28 02:44:33 -04:00
parent fc9f9f1e68
commit 7cae9dd18e
5 changed files with 44 additions and 26 deletions

View File

@@ -95,6 +95,12 @@ class DocumentsApp(MayanAppConfig):
Document, label=_('Label'), name='label', type_name='field'
)
ModelAttribute(
Document,
description=_('The MIME type of any of the versions of a document'),
label=_('MIME type'), name='versions__mimetype', type_name='field'
)
ModelPermission.register(
model=Document, permissions=(
permission_acl_edit, permission_acl_view,