<commit_before>from django import forms
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.views.generic import FormView

from braces.views import LoginRequiredMixin, PermissionRequiredMixin
from dal import autocomplete
from livinglots import get_owner_model
from livinglots_forms.widgets import AddAnotherWidgetWrapper


class MakeAliasesForm(forms.Form):
    owner = forms.ModelChoiceField(
        # NB, does not exclude owners_to_delete
        queryset=get_owner_model().objects.all().order_by('name'),
        widget=autocomplete.ModelSelect2('owner-autocomplete')
    )

    owners_to_delete = forms.ModelMultipleChoiceField(
        queryset=get_owner_model().objects.all(),
        widget=forms.MultipleHiddenInput(),<commit_msg>Actually point to owner autocomplete<commit_after>from django import forms
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.views.generic import FormView

from braces.views import LoginRequiredMixin, PermissionRequiredMixin
from dal import autocomplete
from livinglots import get_owner_model
from livinglots_forms.widgets import AddAnotherWidgetWrapper


class MakeAliasesForm(forms.Form):
    owner = forms.ModelChoiceField(
        # NB, does not exclude owners_to_delete
        queryset=get_owner_model().objects.all().order_by('name'),
        widget=autocomplete.ModelSelect2('owners:owner-autocomplete')
    )

    owners_to_delete = forms.ModelMultipleChoiceField(
        queryset=get_owner_model().objects.all(),
        widget=forms.MultipleHiddenInput(),
{'fraction_non_alphanumeric': 0.07033096926713948, 'fraction_numerical': 0.001182033096926714, 'mean_word_length': 5.247232472324724, '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': '2209083', 'n_tokens_mistral': 462, 'n_tokens_neox': 441, 'n_words': 109}