Add missing model event log registration. Remove debug statement.
This commit is contained in:
@@ -354,4 +354,5 @@ class DocumentsApp(MayanAppConfig):
|
|||||||
dispatch_uid='create_default_document_type'
|
dispatch_uid='create_default_document_type'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
registry.register(DeletedDocument)
|
||||||
registry.register(Document)
|
registry.register(Document)
|
||||||
|
|||||||
@@ -195,7 +195,6 @@ class Document(models.Model):
|
|||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
user = kwargs.pop('_user', None)
|
user = kwargs.pop('_user', None)
|
||||||
print '!!!!!!!!!!', user
|
|
||||||
new_document = not self.pk
|
new_document = not self.pk
|
||||||
super(Document, self).save(*args, **kwargs)
|
super(Document, self).save(*args, **kwargs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user