fix edit lot

This commit is contained in:
Cayo Puigdefabregas 2025-02-20 18:10:37 +01:00
parent e0b48248f0
commit afced90f19

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"