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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user