@@ -114,7 +114,7 @@ def ajax_editable_boolean_cell(item, attr, text='', override=None):
114114 item .pk ,
115115 attr ,
116116 'checked="checked"' if value else '' ,
117- )]
117+ )]
118118
119119 a .insert (0 , '<div id="wrap_%s_%d">' % (attr , item .pk ))
120120 a .append ('</div>' )
@@ -239,7 +239,7 @@ def __init__(self, *args, **kwargs):
239239 opts .app_label , opts .object_name .lower ()),
240240 'admin/feincms/%s/tree_editor.html' % opts .app_label ,
241241 'admin/feincms/tree_editor.html' ,
242- ]
242+ ]
243243 self .object_change_permission = \
244244 opts .app_label + '.' + opts .get_change_permission ()
245245 self .object_add_permission = \
@@ -388,9 +388,9 @@ def _toggle_boolean(self, request):
388388 # Weed out unchanged cells to keep the updates small. This assumes
389389 # that the order a possible get_descendents() returns does not change
390390 # before and after toggling this attribute. Unlikely, but still...
391- return HttpResponse (json . dumps (
392- [b for a , b in zip (before_data , data ) if a != b ]
393- ), content_type = "application/json" )
391+ return HttpResponse (
392+ json . dumps ( [b for a , b in zip (before_data , data ) if a != b ]),
393+ content_type = "application/json" )
394394
395395 def get_changelist (self , request , ** kwargs ):
396396 return ChangeList
@@ -531,9 +531,7 @@ def delete_selected_tree(self, modeladmin, request, queryset):
531531 "Denied delete request by \" %s\" for object #%s" ,
532532 request .user , obj .id )
533533 self .message_user (request ,
534- _ ("Successfully deleted %(count)d items." ) % {
535- "count" : n
536- })
534+ _ ("Successfully deleted %(count)d items." ) % {"count" : n })
537535 # Return None to display the change list page again
538536 return None
539537 else :
0 commit comments