@@ -30,7 +30,7 @@ and map to the obvious Django model field type:
30
30
31
31
While it is mostly not advisable to use eccentric enumerations, there may be
32
32
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
34
34
enumeration values need to retain their native meaning.
35
35
36
36
@@ -55,7 +55,7 @@ Mixed value enumerations are supported. For example:
55
55
``EnumField `` will determine the most appropriate database column type to store
56
56
the enumeration by trying each of the supported primitive types in order and
57
57
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
59
59
primitive type selection. In the above example, the database column type would
60
60
be a string.
61
61
@@ -78,7 +78,7 @@ to override the Enum_'s ``_missing_`` method:
78
78
# primitive will be a float
79
79
eccentric_float = EnumField(EccentricEnum, primitive = float )
80
80
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
82
82
automatically set null=True on the model field.
83
83
84
84
Custom Enumeration Values
0 commit comments