Audit common app

Add support to override settings of the FilteredSelectionForm
via subclass attributes. Add keyword arguments to calls.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-01-02 14:32:22 -04:00
parent 92e615ce4c
commit 125c133334
14 changed files with 134 additions and 99 deletions

View File

@@ -301,7 +301,9 @@ class Template(object):
self.__class__._registry[name] = self
def get_absolute_url(self):
return reverse('rest_api:template-detail', args=(self.name,))
return reverse(
viewname='rest_api:template-detail', kwargs={'template_pk': self.name}
)
def render(self, request):
context = {