summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_warehouse/models.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py
index 50fc8fcae..bf7ea1eb6 100644
--- a/archaeological_warehouse/models.py
+++ b/archaeological_warehouse/models.py
@@ -210,6 +210,7 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):
settings.CACHE_SMALLTIMEOUT)
def save(self, *args, **kwargs):
+ self.update_search_vector()
super(Warehouse, self).save(*args, **kwargs)
for container in self.containers.all():
cached_label_changed(Container, instance=container)
@@ -221,15 +222,11 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):
updated = True
self.auto_external_id = True
self.external_id = external_id
-
self._cached_label_checked = False
self.save()
return
-post_save.connect(cached_label_changed, sender=Warehouse)
-
-
class Collection(LightHistorizedItem):
name = models.CharField(_(u"Name"), max_length=200,
null=True, blank=True)