fix: Do not fill budget line creation formset with already existing objects
This commit is contained in:
parent
5f04b1ff77
commit
909cfd7d5c
1 changed files with 5 additions and 0 deletions
|
@ -224,6 +224,11 @@ class BudgetLineMassCreate(BuroRequiredMixin, FormView):
|
||||||
|
|
||||||
success_url = reverse_lazy("cof_clubs:club-list")
|
success_url = reverse_lazy("cof_clubs:club-list")
|
||||||
|
|
||||||
|
def get_form_kwargs(self):
|
||||||
|
kwargs = super().get_form_kwargs()
|
||||||
|
kwargs["queryset"] = ClubBudgetLine.objects.none()
|
||||||
|
return kwargs
|
||||||
|
|
||||||
def get_common_form(self):
|
def get_common_form(self):
|
||||||
kwargs = {
|
kwargs = {
|
||||||
"prefix": "common",
|
"prefix": "common",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue