mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Sorted display of options in Func.__repr__().
This commit is contained in:
parent
487362fa8f
commit
7dfe03f86d
@ -533,7 +533,7 @@ class Func(Expression):
|
||||
args = self.arg_joiner.join(str(arg) for arg in self.source_expressions)
|
||||
extra = dict(self.extra, **self._get_repr_options())
|
||||
if extra:
|
||||
extra = ', '.join(str(key) + '=' + str(val) for key, val in extra.items())
|
||||
extra = ', '.join(str(key) + '=' + str(val) for key, val in sorted(extra.items()))
|
||||
return "{}({}, {})".format(self.__class__.__name__, args, extra)
|
||||
return "{}({})".format(self.__class__.__name__, args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user