Skip to content

Commit

Permalink
Fixed flake8 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri-Sintsov committed Dec 10, 2023
1 parent 51ec043 commit ef22259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_jinja_knockout/forms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .. import tpl
from .. import apps
from ..utils import sdv
# from ..utils import sdv
from ..widgets import DisplayText
from ..viewmodels import to_json

Expand Down
4 changes: 2 additions & 2 deletions django_jinja_knockout/templatetags/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __init__(self, environment):
environment.globals['url'] = self._url_reverse

@pass_context
def _url_reverse(self, context, name, **kwargs):
return tpl.url(name, request=context.get('request'), **kwargs)
def _url_reverse(self, context, name, *args, **kwargs):
return tpl.url(name, *args, request=context.get('request'), **kwargs)


extensions = {
Expand Down

0 comments on commit ef22259

Please sign in to comment.