From 2233ac186dbcef79d2208fb272f0cb2277ab92de Mon Sep 17 00:00:00 2001 From: carlosp420 Date: Sat, 3 Feb 2018 11:05:30 -0500 Subject: [PATCH] removed unused line that caused exception --- voseq/public_interface/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/voseq/public_interface/utils.py b/voseq/public_interface/utils.py index 201a50ba..49f41e3b 100644 --- a/voseq/public_interface/utils.py +++ b/voseq/public_interface/utils.py @@ -45,7 +45,6 @@ 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 @@ -53,7 +52,6 @@ def get_voucher_code_list(sqs): return code_list - class VoSeqSearchView(SearchView): def __init__(self, url_encoded_query, *args, **kwargs): self.searchqueryset = kwargs['searchqueryset']