summaryrefslogtreecommitdiff
path: root/doc/django.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/django.rst')
-rw-r--r--doc/django.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/django.rst b/doc/django.rst
index 2084659..2117c21 100644
--- a/doc/django.rst
+++ b/doc/django.rst
@@ -6,8 +6,8 @@ Interaction with Django
The ``python-semanticversion`` package provides three custom fields for Django:
- :class:`VersionField`: stores a :class:`semantic_version.Version` object
+- :class:`SpecItemField`: stores a :class:`semantic_version.SpecItem` object
- :class:`SpecField`: stores a :class:`semantic_version.Spec` object
-- :class:`SpecListField`: stores a :class:`semantic_version.SpecList` object
Those fields are :class:`django.db.models.CharField` subclasses,
with their :attr:`~django.db.models.CharField.max_length` defaulting to 200.
@@ -22,11 +22,11 @@ with their :attr:`~django.db.models.CharField.max_length` defaulting to 200.
Boolean; whether :attr:`~semantic_version.Version.partial` versions are allowed.
-.. class:: SpecField
+.. class:: SpecItemField
- Stores a :class:`semantic_version.Spec` as its string representation.
+ Stores a :class:`semantic_version.SpecItem` as its string representation.
-.. class:: SpecListField
+.. class:: SpecField
- Stores a :class:`semantic_version.SpecList` as its comma-separated string representation.
+ Stores a :class:`semantic_version.Spec` as its comma-separated string representation.