summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-12 13:17:17 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-12 13:17:17 +0200
commit74ede4d3b306ac49052ee1a91737068f5da7a89b (patch)
tree7d3f57ec13a117bbbaa8cd9e5117b2478456cd0f /archaeological_files/models.py
parenta2ae7228cae62c4fde1f9554372162d322e69aa9 (diff)
downloadIshtar-74ede4d3b306ac49052ee1a91737068f5da7a89b.tar.bz2
Ishtar-74ede4d3b306ac49052ee1a91737068f5da7a89b.zip
Performance: add indexes for cached labels
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index 0d5b4b3e8..b0f53f11c 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -204,7 +204,8 @@ class File(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter,
mh_listing = models.NullBooleanField(
u"Sur Monument Historique inscrit", blank=True, null=True)
# <-- research archaeology
- cached_label = models.TextField(_(u"Cached name"), null=True, blank=True)
+ cached_label = models.TextField(_(u"Cached name"), null=True, blank=True,
+ db_index=True)
imported_line = models.TextField(_(u"Imported line"), null=True,
blank=True)
history = HistoricalRecords()