Ładuję...
photo
Multiple arguments in Django template filters By default, it is not currently possible to pass multiple arguments to Django template filter - documentation states: "Custom filters are just Python functions that take one or two arguments".
Here I describe solution that allows passing more arguments.
Lets say we have key and current query_string in our template context. We loop in paginator and alter query_string current key value with page. The key is to group arguments in an array. We use followi... Zobacz wpis
  1.  
  • Promuj wpis: