Update documents app to comply with MERCs 5

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-31 02:54:30 -04:00
parent ccd935d752
commit 35ef8ba7b8
20 changed files with 692 additions and 439 deletions

View File

@@ -135,7 +135,10 @@ class Document(models.Model):
return False
def get_absolute_url(self):
return reverse('documents:document_preview', args=(self.pk,))
return reverse(
viewname='documents:document_preview',
kwargs={'document_pk': self.pk}
)
def get_api_image_url(self, *args, **kwargs):
latest_version = self.latest_version