System checks¶
This page catalogs the system checks in Django MongoDB Backend.
Constraints¶
mongodb.constraints.embedded_unique.E001:
EmbeddedFieldUniqueConstraint<name>must havenulls_distinct=Falsesince it referencesEmbeddedModelArrayField<name>.
Indexes¶
mongodb.indexes.search.W001: This MongoDB server does not support
SearchIndex. The index won’t be created. Use a Search-enabled version of MongoDB, or silence this warning if you don’t care about it.mongodb.indexes.search.E002:
VectorSearchIndexrequiressizeon field<field>.mongodb.indexes.search.E003:
VectorSearchIndexrequires the base field ofArrayField<field>to be FloatField or IntegerField but is<field_type>.mongodb.indexes.search.E004:
VectorSearchIndexdoes not support field<field>(<field type>). Allowed types are boolean, date, number, objectId, string, uuid.mongodb.indexes.search.E005:
VectorSearchIndexrequires the same number of similarities and vector fields;<model>has<#>ArrayField(s) butsimilaritieshas<#>element(s).mongodb.indexes.search.E006:
VectorSearchIndexrequires at least oneArrayFieldto store vector data. If you want to perform search operations without vectors, useSearchIndexinstead.mongodb.indexes.search.E007:
VectorSearchIndexrequires the same number of indexing methods and vector fields;<model>has<#>ArrayField(s) butindexing_methodshas<#>element(s).
Fields¶
mongodb.fields.array.E001: Base field for array has errors: …
mongodb.fields.array.E002: Base field for array cannot be a related field.
mongodb.fields.array.E003:
ArrayFieldcannot have bothsizeandmax_size.mongodb.fields.array.W004: Base field for array has warnings: …
mongodb.fields.auto.E001: MongoDB does not support
AutoField. Usedjango_mongodb_backend.fields.ObjectIdAutoFieldinstead.mongodb.fields.embedded_model.E001: Embedded models cannot have relational fields.
mongodb.fields.embedded_model.E002: Embedded models must be a subclass of
django_mongodb_backend.models.EmbeddedModel.mongodb.fields.embedded_model.W003: Embedded models
<model A>and<model B>both have field<field>of different type. It may be impossible to query both fields.mongodb.fields.embedded_model.W004: Using
db_index=Trueon embedded fields is deprecated in favor of usingEmbeddedFieldIndexinMeta.indexeson the top-level model.mongodb.fields.embedded_model.W005: Using
unique=Trueon embedded fields is deprecated in favor of usingEmbeddedFieldUniqueConstraintinMeta.constraintson the top-level model.mongodb.fields.embedded_model.W006: Using
Meta.constraintson embedded models is deprecated in favor of usingEmbeddedFieldUniqueConstraintinMeta.constraintson the top-level model.mongodb.fields.embedded_model.W007: Using
Meta.indexeson embedded models is deprecated in favor of usingEmbeddedFieldIndexinMeta.indexeson the top-level model.mongodb.fields.embedded_model.W008: Using
Meta.unique_togetheron embedded models is deprecated in favor of usingEmbeddedFieldUniqueConstraintinMeta.constraintson the top-level model.mongodb.fields.encryption.E001:
<field>cannot contain encrypted fields (found<field class>).