original_docstring: 
          Returns the filtered queryset based on the value
          provided in the query string and retrievable via
          `self.value()`.
          
docstring: Returns the filtered queryset based on the value
  provided in the query string and retrievable via
  `self.value()`.
docstring_tokens: Returns the filtered queryset based on the value provided in the query string and retrievable via ` self . value () ` .
code: def queryset(self, request, queryset):
          """
          Returns the filtered queryset based on the value
          provided in the query string and retrievable via
          `self.value()`.
          """
          # Compare the requested value (either '80s' or '90s')
          # to decide how to filter the queryset.
  
          # IF(ISBLANK(P4);(IF(O4>A4;"PLÁNOVÁNO";IF(AND(A4>=O4;A4<R4);"VYHLÁŠENO";IF(AND(A4>=R4;A4<=S4);"SBĚR PLNÁ";IF(AND(A4>Q4;A4<R4);"PŘED PLNOU";IF(A4>S4;"UKONČENO";""))))));(IF(O4>A4;"PLÁNOVÁNO";IF(AND(A4>=O4;A4<P4);"VYHLÁŠENO";IF(AND(A4>=P4;A4<=Q4);"SBĚR PŘEDBĚŽNÁ";IF(AND(A4>=R4;A4<=S4);"SBĚR PLNÁ";IF(AND(A4>Q4;A4<R4);"PŘED PLNOU";IF(A4>S4;"UKONČENO";""))))))))
  
          #if call > today:
          #        "plánováno"
          #elif today >= call and today < full_from:
          #    "vyhlášeno"
          #elif today >= full_from and today < full_to:
          #    "sběr plná"
          #elif today > call_to and today < full_from:
          #    "před plnou"
          #elif today > full_to:
          #    "ukončeno"
          #elif today >= call and today < call_from:
          #    "vyhlášeno"
          #elif today >= call_from and today <= call_to:
          #    "sběr předběžná"
  
  
          today = datetime.date.today()
  
          if self.value():
              value = int(self.value())
  
              # plánováno
              if value == 0:
                  queryset = queryset.filter(date_call__gt=today)
  
              # vyhlášeno
              elif value == 1:
                  queryset = DotacniTitul.objects.filter(
                          Q(date_call__lte=today, date_full_from__gt=today) |
                          Q(date_call__lte=today, date_pref_from__gt=today)
                  )
  
              # sběr plná
              elif value == 2:
                  queryset = queryset.filter(date_full_from__lte=today, date_full_to__gt=today)
  
              # sběr předběžná
              elif value == 3:
                  queryset = queryset.filter(date_full_from__lte=today, date_full_to__gt=today)
  
              # před plnou
              elif value == 4:
                  queryset = queryset.filter(date_pref_to__lt=today, date_full_from__gt=today)
  
              # ukončeno
              elif value == 5:
                  queryset = queryset.filter(date_full_to__lt=today)
  
  
          return queryset
code_tokens: def queryset ( self , request , queryset ) : today = datetime . date . today ( ) if self . value ( ) : value = int ( self . value ( ) ) if value == 0 : queryset = queryset . filter ( date_call__gt = today ) elif value == 1 : queryset = DotacniTitul . objects . filter ( Q ( date_call__lte = today , date_full_from__gt = today ) | Q ( date_call__lte = today , date_pref_from__gt = today ) ) elif value == 2 : queryset = queryset . filter ( date_full_from__lte = today , date_full_to__gt = today ) elif value == 3 : queryset = queryset . filter ( date_full_from__lte = today , date_full_to__gt = today ) elif value == 4 : queryset = queryset . filter ( date_pref_to__lt = today , date_full_from__gt = today ) elif value == 5 : queryset = queryset . filter ( date_full_to__lt = today ) return queryset
short_docstring: Returns the filtered queryset based on the value
  provided in the query string and retrievable via
  `self.value()`.
short_docstring_tokens: Returns the filtered queryset based on the value provided in the query string and retrievable via ` self . value () ` .
comment: """
          Returns the filtered queryset based on the value
          provided in the query string and retrievable via
          `self.value()`.
          """$SEP$# Compare the requested value (either '80s' or '90s')$SEP$# to decide how to filter the queryset.$SEP$# IF(ISBLANK(P4);(IF(O4>A4;"PLÁNOVÁNO";IF(AND(A4>=O4;A4<R4);"VYHLÁŠENO";IF(AND(A4>=R4;A4<=S4);"SBĚR PLNÁ";IF(AND(A4>Q4;A4<R4);"PŘED PLNOU";IF(A4>S4;"UKONČENO";""))))));(IF(O4>A4;"PLÁNOVÁNO";IF(AND(A4>=O4;A4<P4);"VYHLÁŠENO";IF(AND(A4>=P4;A4<=Q4);"SBĚR PŘEDBĚŽNÁ";IF(AND(A4>=R4;A4<=S4);"SBĚR PLNÁ";IF(AND(A4>Q4;A4<R4);"PŘED PLNOU";IF(A4>S4;"UKONČENO";""))))))))$SEP$#if call > today:$SEP$#        "plánováno"$SEP$#elif today >= call and today < full_from:$SEP$#    "vyhlášeno"$SEP$#elif today >= full_from and today < full_to:$SEP$#    "sběr plná"$SEP$#elif today > call_to and today < full_from:$SEP$#    "před plnou"$SEP$#elif today > full_to:$SEP$#    "ukončeno"$SEP$#elif today >= call and today < call_from:$SEP$#    "vyhlášeno"$SEP$#elif today >= call_from and today <= call_to:$SEP$#    "sběr předběžná"$SEP$# plánováno$SEP$# vyhlášeno$SEP$# sběr plná$SEP$# sběr předběžná$SEP$# před plnou$SEP$# ukončeno