Skip to content

Commit

Permalink
removed unused line that caused exception
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Feb 3, 2018
1 parent 616703f commit 2233ac1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions voseq/public_interface/utils.py
Expand Up @@ -45,15 +45,13 @@ def get_voucher_code_list(sqs):

try:
# this is voucher queryset
code = sqs[0].code
code_list = "\n".join(list(sqs.distinct("code").values_list("code", flat=True)))
except TypeError:
# this is sequences queryset
code_list = "\n".join(list(sqs.distinct("code").values_list("code__code", flat=True)))
return code_list



class VoSeqSearchView(SearchView):
def __init__(self, url_encoded_query, *args, **kwargs):
self.searchqueryset = kwargs['searchqueryset']
Expand Down

0 comments on commit 2233ac1

Please sign in to comment.