Skip to content

Commit

Permalink
tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
CPrich905 committed Oct 28, 2024
1 parent b88e303 commit 95eb791
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions quotas/forms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,27 +131,6 @@ def __init__(self, *args, **kwargs):
QuotaDeleteForm = delete_form_for(models.QuotaOrderNumber)


# class QuotaOriginExclusionsForm(forms.Form):
# exclusion = forms.ModelChoiceField(
# label="",
# queryset=GeographicalArea.objects.all(), # modified in __init__
# help_text="Select a country to be excluded:",
# required=False,
# )

# def __init__(self, *args, **kwargs):
# super().__init__(*args, **kwargs)
# self.fields["exclusion"].queryset = (
# GeographicalArea.objects.current()
# .with_latest_description()
# .as_at_today_and_beyond()
# .order_by("description")
# )
# self.fields["exclusion"].label_from_instance = (
# lambda obj: f"{obj.area_id} - {obj.description}"
# )


class QuotaUpdateForm(
QuotaOriginsReactMixin,
ValidityPeriodForm,
Expand Down

0 comments on commit 95eb791

Please sign in to comment.