fix edit lot

This commit is contained in:
Cayo Puigdefabregas 2025-02-20 18:10:37 +01:00 committed by sergio-gimenez
parent 8253cd3b2e
commit 8ce443e7ee

View file

@ -87,6 +87,14 @@ class EditLotView(DashboardView, UpdateView):
kwargs = super().get_form_kwargs()
return kwargs
def get_form(self):
form = super().get_form()
form.fields["type"].queryset = LotTag.objects.filter(
owner=self.request.user.institution,
inbox=False
)
return form
class AddToLotView(DashboardView, FormView):
template_name = "list_lots.html"