mirror of
https://github.com/django/django.git
synced 2025-03-31 11:37:06 +00:00
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):
|
||||
from django.core.urlresolvers import reverse, NoReverseMatch
|
||||
args = [arg.resolve(context) for arg in self.args]
|
||||
kwargs = dict((smart_text(k, 'ascii'), v.resolve(context))
|
||||
for k, v in self.kwargs.items())
|
||||
kwargs = {
|
||||
smart_text(k, 'ascii'): v.resolve(context)
|
||||
for k, v in self.kwargs.items()
|
||||
}
|
||||
|
||||
view_name = self.view_name.resolve(context)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user