Add keyword arguments to checkouts app

Add keyword arguments to calls and view parameters. Add missing icons.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-01-02 14:19:32 -04:00
parent 3e53ce0c43
commit 92e615ce4c
14 changed files with 134 additions and 83 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ class DocumentCheckout(models.Model):
super(DocumentCheckout, self).delete(*args, **kwargs)
def get_absolute_url(self):
return reverse('checkout:checkout_info', args=(self.document.pk,))
return reverse(
viewname='checkout:checkout_info', kwargs={'pk': self.document.pk}
)
def natural_key(self):
return self.document.natural_key()