<commit_before>from cms.forms import ContentManageableModelForm

from .models import Job


class JobForm(ContentManageableModelForm):
    class Meta:
        model = Job
        fields = (
            'category',
            'job_types',
            'company',
            'city',
            'region',
            'country',
            'description',
            'requirements',
            'contact',
            'email',
            'url',
            'telecommuting',
            'agencies',
        )<commit_msg>Job form is slightly more friendly but needs some template love.<commit_after>from django.forms.widgets import CheckboxSelectMultiple

from .models import Job
from cms.forms import ContentManageableModelForm


class JobForm(ContentManageableModelForm):
    class Meta:
        model = Job
        fields = (
            'category',
            'job_types',
            'company',
            'city',
            'region',
            'country',
            'description',
            'requirements',
            'contact',
            'email',
            'url',
            'telecommuting',
            'agencies',
        )
        widgets = {
            'job_types': CheckboxSelectMultiple(),
        }

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['job_types'].help_text = None
        self.fields['telecommuting'].label = 'Is telecommuting allowed?'
        self.fields['agencies'].label = 'Is job on behalf of an agency?'
{'fraction_non_alphanumeric': 0.10638297872340426, 'fraction_numerical': 0.0, 'mean_word_length': 1.6923076923076923, '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': '3772684', 'n_tokens_mistral': 389, 'n_tokens_neox': 384, 'n_words': 93}