<commit_before>from django import forms

from open_municipio.acts.models import Act

from open_municipio.locations.models import Location


class ActLocationsAddForm(forms.Form):
    """
    A form used to select zero or more locations to be associated with a given act. 
    """
    # the ``Act`` instance being tagged with locations
    act = forms.ModelChoiceField(queryset=Act.objects.all(), widget=forms.HiddenInput)
    # ``Location`` objects being associated to the act 
    locations = forms.ModelMultipleChoiceField(queryset=Location.objects.all(), required=False, widget=forms.CheckboxSelectMultiple)<commit_msg>closes #361<commit_after>from django import forms

from open_municipio.acts.models import Act

from open_municipio.locations.models import Location


class ActLocationsAddForm(forms.Form):
    """
    A form used to select zero or more locations to be associated with a given act. 
    """
    # the ``Act`` instance being tagged with locations
    act = forms.ModelChoiceField(queryset=Act.objects.all(), widget=forms.HiddenInput)
    # ``Location`` objects being associated to the act 
    locations = forms.ModelMultipleChoiceField(queryset=Location.objects.all().order_by("name"), required=False, widget=forms.CheckboxSelectMultiple)
{'fraction_non_alphanumeric': 0.09054805401111994, 'fraction_numerical': 0.0023828435266084196, 'mean_word_length': 4.971563981042654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7638915', 'n_tokens_mistral': 344, 'n_tokens_neox': 330, 'n_words': 102}