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

@@ -149,7 +149,10 @@ class DocumentVersion(models.Model):
)
def get_absolute_url(self):
return reverse('documents:document_version_view', args=(self.pk,))
return reverse(
viewname='documents:document_version_view',
kwargs={'document_version_pk': self.pk}
)
def get_api_image_url(self, *args, **kwargs):
first_page = self.pages.first()