diff options
author | bryan newbold <bnewbold@snark.mit.edu> | 2009-06-15 17:12:42 -0400 |
---|---|---|
committer | bryan newbold <bnewbold@snark.mit.edu> | 2009-06-15 17:12:42 -0400 |
commit | ee1b8ce4f3826c6d7f76a48fdbd0422ea67017bb (patch) | |
tree | f94343adf2a5be9840664418149bc1d30a286bad /equations | |
parent | f78236c4113d0d4e5019df316125e86a63befd07 (diff) | |
download | equator-appengine.tar.gz equator-appengine.zip |
more; BROKENappengine
Diffstat (limited to 'equations')
-rw-r--r-- | equations/models.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/equations/models.py b/equations/models.py index f4be69e..2e517cd 100644 --- a/equations/models.py +++ b/equations/models.py @@ -1,8 +1,8 @@ #from django.db import models from django.utils.translation import gettext_lazy as _ -import django.contrib.auth.models as auth -from django.conf import settings -from django.dispatch import dispatcher +#import django.contrib.auth.models as auth +#from django.conf import settings +#from django.dispatch import dispatcher #from django.db.models import signals #from signals import update_render from appengine_django.models import BaseModel @@ -36,7 +36,7 @@ class Variable(BaseModel): latex = db.TextProperty(_("Raw LaTeX")) unicode = db.TextProperty(_("Unicode Representation")) description = db.TextProperty(_("Description")) - references = db.ListProperty(db.LinkProperty(_("Reference URL"))) + references = db.ListProperty(db.Link) symbol = db.ReferenceProperty(Symbol) isgeneric = db.BooleanProperty(_("Is Generic?"), default=False) @@ -59,13 +59,13 @@ class Equation(BaseModel): latex = db.TextProperty(_("Raw LaTeX")) unicode = db.TextProperty(_("Unicode Representation")) description = db.TextProperty(_("Description")) - created = db.DateTimeProperty(_("Created"), auto_now_add=True) - updated = db.DateTimeProperty(_("Last Updated"), auto_now_add=True) + created = db.DateProperty(_("Created"), auto_now_add=True) + updated = db.DateProperty(_("Last Updated"), auto_now_add=True) #owner = models.ForeignKey(auth.User, verbose_name=_("Owner")) variables = db.ListProperty(db.Key, verbose_name="Variables") - references = db.ListProperty(db.LinkProperty(_("Reference URL"))) - userurl = db.db.LinkProperty(_("Last User URL")) + references = db.ListProperty(db.Link) + userurl = db.LinkProperty(_("Last User URL")) class Meta: get_latest_by = 'created' |