diff options
author | Bryan Newbold <bnewbold@animus.robocracy.org> | 2008-08-11 20:50:21 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@animus.robocracy.org> | 2008-08-11 20:50:21 -0700 |
commit | f3c85569f394b2019fcd56a55bf2d6aacb67e5a5 (patch) | |
tree | 3de7ee5d32173258952e11affcd8efc984c55cd5 /equations | |
parent | 36b0b1cc6eb6bfa135f131a48ab907db9302a42d (diff) | |
download | equator-f3c85569f394b2019fcd56a55bf2d6aacb67e5a5.tar.gz equator-f3c85569f394b2019fcd56a55bf2d6aacb67e5a5.zip |
transition for django 1 alpha2; seems to be all good
Diffstat (limited to 'equations')
-rw-r--r-- | equations/models.py | 6 | ||||
-rw-r--r-- | equations/templates/equations/equation_detail.html | 2 | ||||
-rw-r--r-- | equations/templates/equations/equation_list.html | 2 | ||||
-rw-r--r-- | equations/templates/equations/symbol_detail.html | 2 | ||||
-rw-r--r-- | equations/templates/equations/symbol_list.html | 2 | ||||
-rw-r--r-- | equations/templates/equations/variable_detail.html | 2 | ||||
-rw-r--r-- | equations/templates/equations/variable_list.html | 2 |
7 files changed, 12 insertions, 6 deletions
diff --git a/equations/models.py b/equations/models.py index 7a5f8fe..b34a93c 100644 --- a/equations/models.py +++ b/equations/models.py @@ -122,3 +122,9 @@ class Equation(models.Model): signals.post_save.connect(update_render, sender=Equation) #dispatcher.connect(update_render, signal=signals.post_save, sender=Equation) +from django.contrib import admin + +admin.site.register(Symbol) +admin.site.register(Variable) +admin.site.register(Equation) + diff --git a/equations/templates/equations/equation_detail.html b/equations/templates/equations/equation_detail.html index 978b2e1..968e5ef 100644 --- a/equations/templates/equations/equation_detail.html +++ b/equations/templates/equations/equation_detail.html @@ -4,7 +4,7 @@ {% block content %} <div style="width: 100%; text-align:center;"> -<img src="{{ object.get_render_url }}" style="border: none;" /></div> +<img src="{{ object.render.url }}" style="border: none;" /></div> <br /> <table width="100%"> {% if object.description %} diff --git a/equations/templates/equations/equation_list.html b/equations/templates/equations/equation_list.html index 549c38f..9712182 100644 --- a/equations/templates/equations/equation_list.html +++ b/equations/templates/equations/equation_list.html @@ -8,7 +8,7 @@ {% for item in object_list %} <tr style="height:60px;"><td style="width:50%;"> <a href="{{ item.get_absolute_url }}" class="imglink"> - <img style="border: none;" src="{{ item.get_render_url }}" /></a> + <img style="border: none;" src="{{ item.render.url }}" /></a> </td><td style="width: 50%"><a href="{{ item.get_absolute_url }}"> {{ item.name }}</a></td></tr> {% endfor %} diff --git a/equations/templates/equations/symbol_detail.html b/equations/templates/equations/symbol_detail.html index 85f59d8..b53b1d6 100644 --- a/equations/templates/equations/symbol_detail.html +++ b/equations/templates/equations/symbol_detail.html @@ -4,7 +4,7 @@ {% block content %} <div style="width: 100%; text-align:center;"> -<img src="{{ object.get_render_url }}" style="border: none;" /></div> +<img src="{{ object.render.url }}" style="border: none;" /></div> <br /> <table width="100%"> <tr><td width="25%"><b>Raw LaTeX:</b></td><td><pre>{{ object.latex }}</pre></td></tr> diff --git a/equations/templates/equations/symbol_list.html b/equations/templates/equations/symbol_list.html index 1983b3f..99c4f55 100644 --- a/equations/templates/equations/symbol_list.html +++ b/equations/templates/equations/symbol_list.html @@ -8,7 +8,7 @@ {% for item in object_list %} <tr style="height:60px;"><td style="width:10%;padding-left:10%;"> <a href="{{ item.get_absolute_url }}" class="imglink"> - <img style="border: none;" src="{{ item.get_render_url }}" /></a> + <img style="border: none;" src="{{ item.render.url }}" /></a> </td><td style="width: 70%"><a href="{{ item.get_absolute_url }}"> {{ item.name }}</a></td></tr> {% endfor %} diff --git a/equations/templates/equations/variable_detail.html b/equations/templates/equations/variable_detail.html index 6488de2..ceec48c 100644 --- a/equations/templates/equations/variable_detail.html +++ b/equations/templates/equations/variable_detail.html @@ -4,7 +4,7 @@ {% block content %} <div style="width: 100%; text-align:center;"> -<img src="{{ object.get_render_url }}" style="border: none;" /></div> +<img src="{{ object.render.url }}" style="border: none;" /></div> <br /> <table width="100%"> {% if object.description %} diff --git a/equations/templates/equations/variable_list.html b/equations/templates/equations/variable_list.html index 9ff7a64..dbd6e41 100644 --- a/equations/templates/equations/variable_list.html +++ b/equations/templates/equations/variable_list.html @@ -8,7 +8,7 @@ {% for item in object_list %} <tr style="height:60px;"><td style="width:10%;padding-left:10%;"> <a href="{{ item.get_absolute_url }}" class="imglink"> - <img style="border: none;" src="{{ item.get_render_url }}" /></a> + <img style="border: none;" src="{{ item.render.url }}" /></a> </td><td style="width: 70%"><a href="{{ item.get_absolute_url }}"> {{ item.name }}</a></td></tr> {% endfor %} |