<commit_before>from django import forms

from comicmodels.models import UploadModel


class UserUploadForm(forms.ModelForm):
    """ For uploading a file to a specific comicsite. You cannot choose
    to which comicsite to upload
    """

    class Meta:
        model = UploadModel
        exclude = ['title', 'comicsite', 'permission_lvl', 'user']


class CKUploadForm(forms.ModelForm):
    upload = forms.FileField()

    class Meta:
        model = UploadModel
        fields = ('upload',)<commit_msg>TRAC #7494 Change exclude to fields<commit_after>from django import forms

from comicmodels.models import UploadModel


class UserUploadForm(forms.ModelForm):
    """ For uploading a file to a specific comicsite. You cannot choose
    to which comicsite to upload
    """

    class Meta:
        model = UploadModel
        fields = ('file',)


class CKUploadForm(forms.ModelForm):
    """ This form is used from CKEditor as the file field is named upload """
    upload = forms.FileField()

    class Meta:
        model = UploadModel
        fields = ('upload',)
{'fraction_non_alphanumeric': 0.08691588785046729, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 3.1192307692307693, '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': '6396254', 'n_tokens_mistral': 305, 'n_tokens_neox': 284, 'n_words': 106}