add warning to ReferenceIndexingMixin to use the serializer mixin

This commit is contained in:
Matthias 2021-12-01 23:36:44 +01:00
parent dc65634abc
commit 7c9201730a
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -49,6 +49,9 @@ class ReferenceIndexingMixin(models.Model):
"""
A mixin for keeping track of numerical copies of the "reference" field.
!!DANGER!! always add `ReferenceIndexingSerializerMixin`to all your models serializers to
ensure the reference field is not too big
Here, we attempt to convert a "reference" field value (char) to an integer,
for performing fast natural sorting.