mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 10:46:06 +02:00
Remove db_index, add meta index
This commit is contained in:
parent
aa9ec2d716
commit
24a18f1562
7 changed files with 31 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue