Fixed error and some warning returned by pylint
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import copy
|
||||
|
||||
from django.db.utils import DatabaseError
|
||||
|
||||
|
||||
object_navigation = {}
|
||||
multi_object_navigation = {}
|
||||
menu_links = []
|
||||
@@ -57,7 +54,7 @@ def register_menu(links):
|
||||
for link in links:
|
||||
menu_links.append(link)
|
||||
|
||||
menu_links.sort(lambda x,y: 1 if x>y else -1, lambda x:x['position'] if 'position' in x else 1)
|
||||
menu_links.sort(lambda x, y: 1 if x>y else -1, lambda x:x['position'] if 'position' in x else 1)
|
||||
|
||||
|
||||
def register_model_list_columns(model, columns):
|
||||
|
||||
Reference in New Issue
Block a user