<commit_before>Fields Reference
================

``IsoDateTimeField``
~~~~~~~~~~~~~~~~~~~~

Extends ``django.forms.DateTimeField`` to parse ISO 8601 formated dates.

Defines a class level attribute ``ISO_8601`` as constant for the format.

Sets ``input_formats = [ISO_8601]``.

<commit_msg>Expand `IsoDateTimeField.input_formats` expanation<commit_after>Fields Reference
================

``IsoDateTimeField``
~~~~~~~~~~~~~~~~~~~~

Extends ``django.forms.DateTimeField`` to allow parsing ISO 8601 formated dates, in addition to existing formats

Defines a class level attribute ``ISO_8601`` as constant for the format.

Sets ``input_formats = [ISO_8601]`` — this means that by default ``IsoDateTimeField`` will **only** parse ISO 8601 formated dates.

You may set ``input_formats`` to your list of required formats as per the `DateTimeField Docs`_, using the ``ISO_8601`` class level attribute to specify the  ISO 8601 format. ::

    f = IsoDateTimeField()
    f.input_formats = [IsoDateTimeField.ISO_8601] + DateTimeField.input_formats


.. _`DateTimeField Docs`:https://docs.djangoproject.com/en/1.8/ref/forms/fields/#django.forms.DateTimeField.input_formats


{'fraction_non_alphanumeric': 0.15721649484536082, 'fraction_numerical': 0.03608247422680412, 'mean_word_length': 5.812865497076023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3470330', 'n_tokens_mistral': 372, 'n_tokens_neox': 337, 'n_words': 106}