summaryrefslogtreecommitdiffstats
path: root/equations
diff options
context:
space:
mode:
Diffstat (limited to 'equations')
-rw-r--r--equations/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/equations/models.py b/equations/models.py
index 9b8a38d..f4be69e 100644
--- a/equations/models.py
+++ b/equations/models.py
@@ -36,7 +36,7 @@ class Variable(BaseModel):
latex = db.TextProperty(_("Raw LaTeX"))
unicode = db.TextProperty(_("Unicode Representation"))
description = db.TextProperty(_("Description"))
- reference = db.TextProperty(_("Reference URL"))
+ references = db.ListProperty(db.LinkProperty(_("Reference URL")))
symbol = db.ReferenceProperty(Symbol)
isgeneric = db.BooleanProperty(_("Is Generic?"), default=False)
@@ -64,7 +64,8 @@ class Equation(BaseModel):
#owner = models.ForeignKey(auth.User, verbose_name=_("Owner"))
variables = db.ListProperty(db.Key, verbose_name="Variables")
- reference = db.TextProperty(_("Reference URL"))
+ references = db.ListProperty(db.LinkProperty(_("Reference URL")))
+ userurl = db.db.LinkProperty(_("Last User URL"))
class Meta:
get_latest_by = 'created'