Skip to content

Commit 6f64994

Browse files
committed
minor doc fixes
1 parent 4f0ea3f commit 6f64994

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/eccentric_enums.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ and map to the obvious Django model field type:
3030

3131
While it is mostly not advisable to use eccentric enumerations, there may be
3232
some compelling reasons to do so. For example, it may make sense in
33-
situations where the database will be used in a non-Django context and the
33+
situations where the database will be used in a non-Python context and the
3434
enumeration values need to retain their native meaning.
3535

3636

@@ -55,7 +55,7 @@ Mixed value enumerations are supported. For example:
5555
``EnumField`` will determine the most appropriate database column type to store
5656
the enumeration by trying each of the supported primitive types in order and
5757
selecting the first one that is symmetrically coercible to and from each
58-
enumeration value. None values are allowed and do not take part in the
58+
enumeration value. ``None`` values are allowed and do not take part in the
5959
primitive type selection. In the above example, the database column type would
6060
be a string.
6161

@@ -78,7 +78,7 @@ to override the Enum_'s ``_missing_`` method:
7878
# primitive will be a float
7979
eccentric_float = EnumField(EccentricEnum, primitive=float)
8080
81-
In the above case since None is an enumeration value, ``EnumField`` will
81+
In the above case since ``None`` is an enumeration value, ``EnumField`` will
8282
automatically set null=True on the model field.
8383

8484
Custom Enumeration Values

0 commit comments

Comments
 (0)