Split document view into document preview, document content and document properties views

This commit is contained in:
Roberto Rosario
2014-11-17 18:52:20 -04:00
parent d751425d7f
commit 5963822be7
8 changed files with 89 additions and 83 deletions

View File

@@ -108,7 +108,7 @@ class Document(models.Model):
@models.permalink
def get_absolute_url(self):
return ('documents:document_view_simple', [self.pk])
return ('documents:document_preview', [self.pk])
def save(self, *args, **kwargs):
user = kwargs.pop('user', None)