You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add reference anchors to filter types to facilitate intersphinx refs (#1706)
* Update filterset.py
Remove the template_pack setter on rest_framework cripsy forms. This lets crispy forms decide what the template pack should be.
* add reference anchors to filter types in docs to facilitate intersphinx referencing
* replace section references with class references
* add osx DS_Store and _docs to gitignore
* go crazy with interpshinx references
Copy file name to clipboardExpand all lines: docs/ref/fields.txt
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,23 @@
2
2
Field Reference
3
3
===============
4
4
5
-
``IsoDateTimeField``
6
-
~~~~~~~~~~~~~~~~~~~~
5
+
.. module:: django_filters.fields
6
+
:synopsis: Provided form fields and their arguments.
7
7
8
-
Extends ``django.forms.DateTimeField`` to allow parsing ISO 8601 formated dates, in addition to existing formats
8
+
.. currentmodule:: django_filters.fields
9
+
10
+
.. class:: IsoDateTimeField
11
+
12
+
Extends :class:`django.forms.DateTimeField` to allow parsing ISO 8601 formated dates, in addition to existing formats
9
13
10
14
Defines a class level attribute ``ISO_8601`` as constant for the format.
11
15
12
16
Sets ``input_formats = [ISO_8601]`` — this means that by default ``IsoDateTimeField`` will **only** parse ISO 8601 formated dates.
13
17
14
-
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.
18
+
You may set :attr:`~django.forms.DateTimeField.input_formats` to your list of required formats as per the :class:`~django.forms.DateTimeField` docs, using the ``ISO_8601`` class level attribute to specify the ISO 8601 format.
0 commit comments