<commit_before>from django import forms
from django.forms import ModelForm

from open_municipio.monitoring.models import Monitoring

class MonitoringForm(ModelForm):
    """
    A form to start or stop monitoring an object.
    
    It contains two hidden fields, that must take value when the form is created.
    """
    content_type_id = forms.IntegerField(widget=forms.HiddenInput)
    object_pk = forms.IntegerField(widget=forms.HiddenInput)

    class Meta:
        model = Monitoring
        fields = ('content_type_id', 'object_pk')
<commit_msg>Added a TODO comment.<commit_after>from django import forms
from django.forms import ModelForm

from open_municipio.monitoring.models import Monitoring

class MonitoringForm(ModelForm):
    """
    A form to start or stop monitoring an object.
    
    It contains two hidden fields, that must take value when the form is created.
    """
    # FIXME: should be a ``ModelChoiceField``;
    # this way, further validation would be performed
    content_type_id = forms.IntegerField(widget=forms.HiddenInput)
    # FIXME: should be a ``ModelChoiceField``;
    # this way, further validation would be performed
    object_pk = forms.IntegerField(widget=forms.HiddenInput)

    class Meta:
        model = Monitoring
        fields = ('content_type_id', 'object_pk')

{'fraction_non_alphanumeric': 0.07522796352583587, 'fraction_numerical': 0.0, 'mean_word_length': 3.7204301075268815, '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': '6520713', 'n_tokens_mistral': 356, 'n_tokens_neox': 349, 'n_words': 123}