Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Fix warning in models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
frrad authored Jun 2, 2020
1 parent 38403b7 commit 77a20e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/documents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ def many_to_dictionary(field):
# Find delimiter
delimiter = t.name.find('_')

if delimiter is -1:
if delimiter == -1:
delimiter = t.name.find('-')

if delimiter is -1:
if delimiter == -1:
continue

key = t.name[:delimiter]
Expand Down

0 comments on commit 77a20e1

Please sign in to comment.