♻️ add BreadcrumbView class to govplan views
This commit is contained in:
parent
721d02bcd5
commit
250888879f
1 changed files with 3 additions and 1 deletions
|
|
@ -4,12 +4,14 @@ from django.shortcuts import get_object_or_404, redirect, render
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from django.views.generic import DetailView, UpdateView
|
||||
|
||||
from froide.helper.breadcrumbs import BreadcrumbView
|
||||
|
||||
from .auth import get_visible_plans
|
||||
from .forms import GovernmentPlanUpdateProposalForm
|
||||
from .models import Government, GovernmentPlan, GovernmentPlanSection
|
||||
|
||||
|
||||
class GovernmentMixin:
|
||||
class GovernmentMixin(BreadcrumbView):
|
||||
def dispatch(self, *args, **kwargs):
|
||||
self.get_government()
|
||||
return super().dispatch(*args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue