<commit_before>from datetime import datetime

from django import forms
from django.db.models import Q
from django.forms import widgets
from django.forms.formsets import BaseFormSet
from django.forms.models import inlineformset_factory, ModelChoiceField, BaseInlineFormSet
from django.forms.util import ErrorDict

from challenges.models import (Submission, ExternalLink, Category,
                               Judgement, JudgingCriterion, JudgingAnswer,
                               PhaseRound, SubmissionHelp, Phase)
from challenges.widgets import CustomRadioSelect


entry_widgets = {
    'title': forms.TextInput(attrs={'aria-describedby':'info_title'}),
    'brief_description': forms.TextInput(attrs={'aria-describedby':'info_brief_description'}),
    'sketh_note': forms.FileInput(attrs={'aria-describedby':'info_sketh_note'}),
    'description': forms.Textarea(attrs={'aria-describedby':'info_description',
                                         'id':'wmd-input',}),
    'life_improvements': forms.Textarea(attrs={
        'aria-describedby': 'info_life_improvements',
    }),
    'take_advantage': forms.Textarea(attrs={
        'aria-describedby': 'info_take_advantage',
    }),
    'interest_making': forms.Textarea(attrs={
        'aria-describedby': 'info_intertest_making',
    }),
    'team_members': forms.Textarea(attrs={
        'aria-describedby': 'info_team_members'
    }),
    'is_draft': forms.CheckboxInput(attrs={'aria-describedby': 'info_is_draft'}),
    }

entry_fields = (
    'title',
    'brief_description',
    'description',
    'collaborators',
    'is_draft',
    'sketh_note',
    'category',
    'is_draft',
    'sketh_note',
    'category',
    'life_improvements',
    'take_advantage',
    'interest_making',
    'team_members',
    )

# List new fields for the Submission
development_entry_fields = entry_fields + (
    'repository_url',<commit_msg>Adding blog_url to the list of expected development stage fields - so that the data actually gets saved<commit_after>from datetime import datetime

from django import forms
from django.db.models import Q
from django.forms import widgets
from django.forms.formsets import BaseFormSet
from django.forms.models import inlineformset_factory, ModelChoiceField, BaseInlineFormSet
from django.forms.util import ErrorDict

from challenges.models import (Submission, ExternalLink, Category,
                               Judgement, JudgingCriterion, JudgingAnswer,
                               PhaseRound, SubmissionHelp, Phase)
from challenges.widgets import CustomRadioSelect


entry_widgets = {
    'title': forms.TextInput(attrs={'aria-describedby':'info_title'}),
    'brief_description': forms.TextInput(attrs={'aria-describedby':'info_brief_description'}),
    'sketh_note': forms.FileInput(attrs={'aria-describedby':'info_sketh_note'}),
    'description': forms.Textarea(attrs={'aria-describedby':'info_description',
                                         'id':'wmd-input',}),
    'life_improvements': forms.Textarea(attrs={
        'aria-describedby': 'info_life_improvements',
    }),
    'take_advantage': forms.Textarea(attrs={
        'aria-describedby': 'info_take_advantage',
    }),
    'interest_making': forms.Textarea(attrs={
        'aria-describedby': 'info_intertest_making',
    }),
    'team_members': forms.Textarea(attrs={
        'aria-describedby': 'info_team_members'
    }),
    'is_draft': forms.CheckboxInput(attrs={'aria-describedby': 'info_is_draft'}),
    }

entry_fields = (
    'title',
    'brief_description',
    'description',
    'collaborators',
    'is_draft',
    'sketh_note',
    'category',
    'is_draft',
    'sketh_note',
    'category',
    'life_improvements',
    'take_advantage',
    'interest_making',
    'team_members',
    )

# List new fields for the Submission
development_entry_fields = entry_fields + (
    'repository_url',
    'blog_url',
{'fraction_non_alphanumeric': 0.12223934257832562, 'fraction_numerical': 0.0, 'mean_word_length': 3.6927710843373496, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3793720', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1132, 'n_words': 214}