mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #28909 -- Simplifed code using unpacking generalizations.
This commit is contained in:
committed by
Tim Graham
parent
4fc8fb7dda
commit
8ef8bc0f64
@@ -278,7 +278,7 @@ class ModelDetailView(BaseAdminDocsView):
|
||||
# join it with '='. Use repr() so that strings will be
|
||||
# correctly displayed.
|
||||
print_arguments = ', '.join([
|
||||
'='.join(list(arg_el[:1]) + [repr(el) for el in arg_el[1:]])
|
||||
'='.join([arg_el[0], *map(repr, arg_el[1:])])
|
||||
for arg_el in arguments
|
||||
])
|
||||
methods.append({
|
||||
|
||||
Reference in New Issue
Block a user