Skip to content

Commit

Permalink
Merge pull request #382 from VoSeq/exception-index
Browse files Browse the repository at this point in the history
fixes #381
  • Loading branch information
carlosp420 committed Feb 3, 2018
2 parents 616703f + 2233ac1 commit b3d6854
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions voseq/public_interface/utils.py
Original file line number Diff line number Diff line change
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 b3d6854

Please sign in to comment.