Remove db_index, add meta index

This commit is contained in:
zandercymatics 2024-05-06 14:19:25 -06:00
parent aa9ec2d716
commit 24a18f1562
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 31 additions and 13 deletions

View file

@ -65,6 +65,13 @@ class Domain(TimeStampedModel, DomainHelper):
domain meets the required checks.
"""
class Meta:
"""Contains meta information about this class"""
indexes = [
models.Index(fields=["name"]),
]
def __init__(self, *args, **kwargs):
self._cache = {}
super(Domain, self).__init__(*args, **kwargs)