def queryset(self, request, queryset):
if self.value() == 'yes':
return queryset.exclude(payed_at=None)
elif self.value() == 'no':
return queryset.filter(payed_at=None)
def queryset(self, request, queryset):
if self.value() == 'yes':
return queryset.exclude(payed_at=None)
elif self.value() == 'no':
return queryset.filter(payed_at=None)