Skip to content

Commit

Permalink
PEP8 E731 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic committed Feb 14, 2015
1 parent 96dd6bb commit fb5b445
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion autocomplete_light/autocomplete/choice_list.py
Expand Up @@ -32,7 +32,8 @@ class AutocompleteChoiceList(AutocompleteList):
:py:meth:`~.choice_list.AutocompleteChoiceList.order_choices` will use
this against :py:attr:`choices` as an argument :py:func:`sorted`.
"""
order_by = lambda cls, choice: force_text(choice[1]).lower()
def order_by(cls, choice):
return force_text(choice[1]).lower()

def choices_for_values(self):
"""
Expand Down
4 changes: 3 additions & 1 deletion autocomplete_light/autocomplete/list.py
Expand Up @@ -29,7 +29,9 @@ class AutocompleteList(object):
"""

limit_choices = 20
order_by = lambda cls, choice: force_text(choice).lower()

def order_by(cls, choice):
return force_text(choice).lower()

def choices_for_values(self):
"""
Expand Down

0 comments on commit fb5b445

Please sign in to comment.