summaryrefslogtreecommitdiffstats
path: root/equations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'equations/models.py')
-rw-r--r--equations/models.py16
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'