Used dict comprehension in URLNode
4468c08d7
replaced a lot of the old `dict()` comprehensions
with the new style, but missed this one.
This commit is contained in:
parent
f7bf135f62
commit
4fdc7015c0
|
@ -472,8 +472,10 @@ class URLNode(Node):
|
||||||
def render(self, context):
|
def render(self, context):
|
||||||
from django.core.urlresolvers import reverse, NoReverseMatch
|
from django.core.urlresolvers import reverse, NoReverseMatch
|
||||||
args = [arg.resolve(context) for arg in self.args]
|
args = [arg.resolve(context) for arg in self.args]
|
||||||
kwargs = dict((smart_text(k, 'ascii'), v.resolve(context))
|
kwargs = {
|
||||||
for k, v in self.kwargs.items())
|
smart_text(k, 'ascii'): v.resolve(context)
|
||||||
|
for k, v in self.kwargs.items()
|
||||||
|
}
|
||||||
|
|
||||||
view_name = self.view_name.resolve(context)
|
view_name = self.view_name.resolve(context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue