<reponame>uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
from django.urls import reverse_lazy
from mtp_common.user_admin.views import (
    AcceptRequestView as AcceptRequestViewBase,
    SignUpView as BaseSignUpView,
)

from .forms import AcceptRequestForm, SignUpForm


class AcceptRequestView(AcceptRequestViewBase):
    form_class = AcceptRequestForm


class SignUpView(BaseSignUpView):
    form_class = SignUpForm

    def get_context_data(self, **kwargs):
        kwargs['breadcrumbs_back'] = reverse_lazy('root')

        return super().get_context_data(**kwargs)

from django.urls import reverse_lazy
from mtp_common.user_admin.views import (
    AcceptRequestView as AcceptRequestViewBase,
    SignUpView as BaseSignUpView,
)

from .forms import AcceptRequestForm, SignUpForm


class AcceptRequestView(AcceptRequestViewBase):
    form_class = AcceptRequestForm


class SignUpView(BaseSignUpView):
    form_class = SignUpForm

    def get_context_data(self, **kwargs):
        kwargs['breadcrumbs_back'] = reverse_lazy('root')

        return super().get_context_data(**kwargs)