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
Copy file name to clipboardExpand all lines: doc/source/index.rst
+5-5
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Django Enum
7
7
Full and natural support for enumerations_ as Django model fields.
8
8
9
9
Many packages aim to ease usage of Python enumerations as model fields. Most
10
-
were made obsolete when Django provided ``TextChoices`` and ``IntegerChoices``
10
+
were made obsolete when Django provided TextChoices_ and IntegerChoices_
11
11
types. The motivation for django-enum was to:
12
12
13
13
* Always automatically coerce fields to instances of the Enum type.
@@ -19,10 +19,10 @@ types. The motivation for django-enum was to:
19
19
* Represent enum fields with the smallest possible column type.
20
20
* Be as simple and light-weight an extension to core Django as possible.
21
21
22
-
django-enum works in concert with Django_'s built in ``TextChoices`` and
23
-
``IntegerChoices`` to provide a new model field type, ``EnumField``, that
22
+
django-enum works in concert with Django_'s built in TextChoices_ and
23
+
IntegerChoices_ to provide a new model field type, ``EnumField``, that
24
24
resolves the correct native Django_ field type for the given enumeration based
25
-
on its value type and range. For example, ``IntegerChoices`` that contain
25
+
on its value type and range. For example, IntegerChoices_ that contain
26
26
values between 0 and 32767 become `PositiveSmallIntegerField <https://docs.djangoproject.com/en/stable/ref/models/fields/#positivesmallintegerfield>`_.
27
27
28
28
.. code:: python
@@ -71,7 +71,7 @@ accessible as their enumeration type rather than by-value:**
71
71
72
72
73
73
`django-enum <https://django-enum.readthedocs.io/en/latest/>`_ also provides
74
-
``IntegerChoices`` and ``TextChoices`` types that extend from
74
+
IntegerChoices_ and TextChoices_ types that extend from
75
75
enum-properties_ which makes possible very rich enumeration fields.
0 commit comments