Revert "✨ Add shortlinks for govplan updates"
This reverts commit fc64045cde.
This commit is contained in:
parent
fc64045cde
commit
8b9710a452
3 changed files with 1 additions and 26 deletions
|
|
@ -5,12 +5,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
from django.views.generic import DetailView, UpdateView
|
||||
|
||||
from .forms import GovernmentPlanUpdateProposalForm
|
||||
from .models import (
|
||||
Government,
|
||||
GovernmentPlan,
|
||||
GovernmentPlanSection,
|
||||
GovernmentPlanUpdate,
|
||||
)
|
||||
from .models import Government, GovernmentPlan, GovernmentPlanSection
|
||||
|
||||
|
||||
class GovernmentMixin:
|
||||
|
|
@ -137,8 +132,3 @@ def search(request):
|
|||
return render(
|
||||
request, "froide_govplan/plugins/card_cols.html", {"object_list": plans}
|
||||
)
|
||||
|
||||
|
||||
def update_shortlink(request, gov, obj_id):
|
||||
obj = get_object_or_404(GovernmentPlanUpdate, plan__government__slug=gov, pk=obj_id)
|
||||
return redirect(obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue