Skip to content

Commit 172d57f

Browse files
committed
fix readme links
1 parent 1bd39db commit 172d57f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
.. _enumerations: https://docs.python.org/3/library/enum.html#enum.Enum
3131
.. _ValueError: https://docs.python.org/3/library/exceptions.html#ValueError
3232
.. _DRY: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself
33-
.. _enum-properties: https://pypi.org/project/enum-properties
34-
.. _django-enum: https://django-enum.readthedocs.io/en/latest
3533

3634
Django Enum
3735
###########
@@ -40,21 +38,23 @@ Full and natural support for enumerations_ as Django model fields.
4038

4139
Many packages aim to ease usage of Python enumerations as model fields. Most
4240
were made obsolete when Django provided ``TextChoices`` and ``IntegerChoices``
43-
types. The motivation for django-enum_ was to:
41+
types. The motivation for `django-enum <https://django-enum.readthedocs.io/en/latest/>`_
42+
was to:
4443

4544
* Always automatically coerce fields to instances of the Enum type.
4645
* Allow strict adherence to Enum values to be disabled.
4746
* Handle migrations appropriately. (See `migrations <https://django-enum.readthedocs.io/en/latest/usage.html#migrations>`_)
4847
* Integrate as fully as possible with Django_'s existing level of enum support.
49-
* Integrate with enum-properties_ to enable richer enumeration types.
48+
* Integrate with `enum-properties <https://pypi.org/project/enum-properties/>`_ to enable richer enumeration types.
5049
* Represent enum fields with the smallest possible column type.
5150
* Be as simple and light-weight an extension to core Django as possible.
5251

53-
django-enum_ works in concert with Django_'s built in ``TextChoices`` and
54-
``IntegerChoices`` to provide a new model field type, ``EnumField``, that
55-
resolves the correct native Django_ field type for the given enumeration based
56-
on its value type and range. For example, ``IntegerChoices`` that contain
57-
values between 0 and 32767 become `PositiveSmallIntegerField <https://docs.djangoproject.com/en/stable/ref/models/fields/#positivesmallintegerfield>`_.
52+
`django-enum <https://django-enum.readthedocs.io/en/latest/>`_ works in concert
53+
with Django_'s built in ``TextChoices`` and ``IntegerChoices`` to provide a
54+
new model field type, ``EnumField``, that resolves the correct native Django_
55+
field type for the given enumeration based on its value type and range. For
56+
example, ``IntegerChoices`` that contain values between 0 and 32767 become
57+
`PositiveSmallIntegerField <https://docs.djangoproject.com/en/stable/ref/models/fields/#positivesmallintegerfield>`_.
5858

5959
.. code:: python
6060

0 commit comments

Comments
 (0)