summaryrefslogtreecommitdiffstats
path: root/equations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'equations/models.py')
-rw-r--r--equations/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/equations/models.py b/equations/models.py
index b34a93c..e644a37 100644
--- a/equations/models.py
+++ b/equations/models.py
@@ -33,6 +33,8 @@ class Symbol(models.Model):
self.render = self.renderdir + "%s.png" % self.id
super(Symbol, self).save()
+dispatcher.connect(update_render, signal=signals.pre_save, sender=Symbol)
+
def update_generic_variable(sender, instance, signal, *args, **kwargs):
"""Checks if there is a generic variable associated with this
symbol; create one if there isn't"""