summaryrefslogtreecommitdiffstats
path: root/equations/models.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@animus.robocracy.org>2008-08-11 20:50:44 -0700
committerBryan Newbold <bnewbold@animus.robocracy.org>2008-08-11 20:50:44 -0700
commitcc014f1d0b102bf9222fd7961546e3968fb46961 (patch)
treed5f972191930f906e59cdc8d73b590d6723dabdb /equations/models.py
parentf3c85569f394b2019fcd56a55bf2d6aacb67e5a5 (diff)
parent7903b16c1cfa93e2683e140019afabdd86a6f34a (diff)
downloadequator-cc014f1d0b102bf9222fd7961546e3968fb46961.tar.gz
equator-cc014f1d0b102bf9222fd7961546e3968fb46961.zip
Merge branch 'master' of /srv/git/equator
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"""