File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ def to_dict(tool_name):
40
40
items = []
41
41
42
42
row_actions = self .get_row_actions (obj )
43
- url_prefix = " {obj.pk if includePk else ''}/"
43
+ url_prefix = f' { obj .pk if includePk else "" } /'
44
44
45
45
for tool in row_actions :
46
46
if isinstance (tool , str ): # Just a str naming a callable
47
47
tool_dict = to_dict (tool )
48
48
items .append ({
49
49
'label' : tool_dict ['label' ],
50
- 'url' : f" { url_prefix } rowactions/{ tool } /" ,
50
+ 'url' : f' { url_prefix } rowactions/{ tool } /' ,
51
51
'method' : tool_dict .get ('POST' , 'GET' )
52
52
})
53
53
@@ -56,9 +56,9 @@ def to_dict(tool_name):
56
56
if 'action' in tool : # If 'action' is specified then use our generic url in preference to 'url' value
57
57
if isinstance (tool ['action' ], tuple ):
58
58
self ._named_row_actions [tool ['action' ][0 ]] = tool ['action' ][1 ]
59
- tool ['url' ] = f" { url_prefix } rowactions/{ tool [' action' ][0 ]} /"
59
+ tool ['url' ] = f' { url_prefix } rowactions/{ tool [" action" ][0 ]} /'
60
60
else :
61
- tool ['url' ] = f" { url_prefix } rowactions/{ tool [' action' ]} /"
61
+ tool ['url' ] = f' { url_prefix } rowactions/{ tool [" action" ]} /'
62
62
items .append (tool )
63
63
64
64
return items
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def __init__(self, **kwargs):
15
15
16
16
@classmethod
17
17
def get_unique_id (cls ):
18
- return f" { cls .__name__ .lower ()} -{ len (cls .instances )} "
18
+ return f' { cls .__name__ .lower ()} -{ len (cls .instances )} '
19
19
20
20
def render (self ):
21
21
return render_to_string (
You can’t perform that action at this time.
0 commit comments