Skip to content

Commit

Permalink
Drop useless/misleading elifs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamby committed Sep 24, 2019
1 parent 4da38eb commit 8dba7bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_enumfield/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def prepare(value):

if lookup_type in ("exact", "lt", "lte", "gt", "gte"):
return prepare(value)
elif lookup_type == "in":
if lookup_type == "in":
return [prepare(v) for v in value]
elif lookup_type == "isnull":
if lookup_type == "isnull":
return value

raise TypeError("Lookup type %r not supported." % lookup_type)
Expand Down

0 comments on commit 8dba7bd

Please sign in to comment.