fix: Do not fill budget line creation formset with already existing objects
This commit is contained in:
parent
fee57cc835
commit
b91bd18a9a
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")
|
||||
|
||||
def get_form_kwargs(self):
|
||||
kwargs = super().get_form_kwargs()
|
||||
kwargs["queryset"] = ClubBudgetLine.objects.none()
|
||||
return kwargs
|
||||
|
||||
def get_common_form(self):
|
||||
kwargs = {
|
||||
"prefix": "common",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue