Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Commit

Permalink
Required all regions selection in InstitutionForm
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed May 25, 2016
1 parent 6cb4b53 commit 1159e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bliski_publikator/institutions/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class InstitutionForm(M2MFieldFormMixin, UserKwargModelFormMixin, FormHorizontal
# TODO: Split region,voivodeship,county into forms.MultiWidget
voivodeship = forms.ModelChoiceField(
label=_("Voivodeship"),
required=False,
required=True,
queryset=JST.objects.voivodeship().all(),
widget=autocomplete.ModelSelect2(url='teryt:voivodeship-autocomplete')
)
county = forms.ModelChoiceField(
label=_("County"),
required=False,
required=True,
queryset=JST.objects.county().all(),
widget=autocomplete.ModelSelect2(url='teryt:county-autocomplete',
forward=['voivodeship'],
Expand Down

0 comments on commit 1159e2b

Please sign in to comment.