<commit_before>from django.urls import re_path, reverse_lazy
from django.views.generic import RedirectView

urlpatterns = [
    re_path(
        "^europeennes/.*",
        RedirectView.as_view(url=reverse_lazy("donation_amount")),
        name="europeennes_donation_and_loan",
    )
]<commit_msg>fix(europennes): restore loan contract view<commit_after>from django.urls import re_path, reverse_lazy, path
from django.views.generic import RedirectView

from agir.europeennes import views

urlpatterns = [
    path(
        "europennes/prets/contrat/<int:pk>/",
        views.LoanContractView.as_view(),
        name="europeennes_view_contract",
    ),
    re_path(
        "^europeennes/.*",
        RedirectView.as_view(url=reverse_lazy("donation_amount")),
        name="europeennes_donation_and_loan",
    ),
]
{'fraction_non_alphanumeric': 0.11330049261083744, 'fraction_numerical': 0.0, 'mean_word_length': 3.8682634730538923, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4477568', 'n_tokens_mistral': 271, 'n_tokens_neox': 268, 'n_words': 41}