PEP8: Forgot a few binops
This commit is contained in:
parent
6d68f6638f
commit
483ddf0f86
6 changed files with 17 additions and 18 deletions
|
@ -24,8 +24,8 @@ def add_link_field(target_model='', field='', link_text=unicode,
|
|||
if not link_obj.id:
|
||||
return ""
|
||||
url = reverse(reverse_path, args=(link_obj.id,))
|
||||
return mark_safe("<a href='%s'>%s</a>" %
|
||||
(url, link_text(link_obj)))
|
||||
return mark_safe("<a href='%s'>%s</a>"
|
||||
% (url, link_text(link_obj)))
|
||||
link.allow_tags = True
|
||||
link.short_description = desc_text(reverse_name + ' link')
|
||||
cls.link = link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue