<commit_before>from graphene import relay

from ...discount import models
from ..core.types import CountableDjangoObjectType


class Voucher(CountableDjangoObjectType):
    class Meta:
        description = """A token that can be used to purchase products
        for discounted price."""
        interfaces = [relay.Node]
        filter_fields = {
            'name': ['icontains'],
            'type': ['icontains'],
            'discount_value': ['gte', 'lte'],
            'start_date': ['exact'],
            'end_date': ['exact']}
        model = models.Voucher


class Sale(CountableDjangoObjectType):
    class Meta:
        description = """A special event featuring discounts
        for selected products"""
        interfaces = [relay.Node]
        filter_fields = {
            'name': ['icontains'],
            'type': ['icontains'],
            'value': ['gte', 'lte']}
        model = models.Sale
<commit_msg>Change type filter field<commit_after>from graphene import relay

from ...discount import models
from ..core.types import CountableDjangoObjectType


class Voucher(CountableDjangoObjectType):
    class Meta:
        description = """A token that can be used to purchase products
        for discounted price."""
        interfaces = [relay.Node]
        filter_fields = {
            'name': ['icontains'],
            'type': ['exact'],
            'discount_value': ['gte', 'lte'],
            'start_date': ['exact'],
            'end_date': ['exact']}
        model = models.Voucher


class Sale(CountableDjangoObjectType):
    class Meta:
        description = """A special event featuring discounts
        for selected products"""
        interfaces = [relay.Node]
        filter_fields = {
            'name': ['icontains'],
            'type': ['icontains'],
            'value': ['gte', 'lte']}
        model = models.Sale

{'fraction_non_alphanumeric': 0.12694997310381925, 'fraction_numerical': 0.0, 'mean_word_length': 2.297872340425532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3724044', 'n_tokens_mistral': 515, 'n_tokens_neox': 503, 'n_words': 143}