Add new document app events: document type created and document type edited. Add link to document type events.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-15 03:18:46 -04:00
parent b3ef018d6c
commit cd76b1fd4a
5 changed files with 46 additions and 3 deletions
@@ -67,6 +67,11 @@ class DocumentTypeCreateView(SingleObjectCreateView):
'title': _('Create document type'),
}
def get_save_extra_data(self):
return {
'_user': self.request.user,
}
class DocumentTypeDeleteView(SingleObjectDeleteView):
model = DocumentType
@@ -96,6 +101,11 @@ class DocumentTypeEditView(SingleObjectEditView):
'title': _('Edit document type: %s') % self.get_object(),
}
def get_save_extra_data(self):
return {
'_user': self.request.user,
}
class DocumentTypeFilenameCreateView(SingleObjectCreateView):
form_class = DocumentTypeFilenameForm_create