<commit_before>from django.http import Http404

from agir.payments.types import register_payment_type, PaymentType


def not_found(request, payment):
    raise Http404()


register_payment_type(
    PaymentType(
        "don_presidentielle2017",
        "Don à la campagne présidentielle 2017",
        not_found,
        description_template="legacy/europeennes/donation_description.html",
    )
)
<commit_msg>Fix(dons): Lie vers le bon template pour les dons 2017<commit_after>from django.http import Http404

from agir.payments.types import register_payment_type, PaymentType


def not_found(request, payment):
    raise Http404()


register_payment_type(
    PaymentType(
        "don_presidentielle2017",
        "Don à la campagne présidentielle 2017",
        not_found,
        description_template="legacy/presidentielle2017/donation_description.html",
    )
)

{'fraction_non_alphanumeric': 0.07471264367816093, 'fraction_numerical': 0.041379310344827586, 'mean_word_length': 4.005747126436781, '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': '907249', 'n_tokens_mistral': 285, 'n_tokens_neox': 250, 'n_words': 59}