Commits

moberley  committed 47fa9b1

Change list condition to use more proper style with isinstance().

  • Participants
  • Parent commits 76bff51

Comments (0)

Files changed (1)

File treebeard/admin.py

         """
         ordering = super(TreeChangeList, self).get_ordering(*args)
 
-        if type(ordering) != type([]):
+        if not isinstance(ordering, list):
             if not check_empty_dict(self.params):
                 return ordering
             else: