aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@eta.mit.edu>2009-01-23 02:24:54 -0500
committerbnewbold <bnewbold@eta.mit.edu>2009-01-23 02:24:54 -0500
commit85fec94e25e471e4bcdeeafba91deddecd69033a (patch)
tree79b0234fa487785fcf03de7e7ace2f97c417a786
parentf9305457e75542195cd8a162be2b9ef0e1d92f63 (diff)
downloadbnewnet-85fec94e25e471e4bcdeeafba91deddecd69033a.tar.gz
bnewnet-85fec94e25e471e4bcdeeafba91deddecd69033a.zip
stripped weird commenting
-rw-r--r--bn_django/photos/models.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/bn_django/photos/models.py b/bn_django/photos/models.py
index e81ee3c..73d09e9 100644
--- a/bn_django/photos/models.py
+++ b/bn_django/photos/models.py
@@ -30,23 +30,23 @@ if ADMIN_URL[-1] == '/':
# Create your models here.
class Gallery(models.Model):
- title = models.CharField(_("title"), max_length=80)
+ title = models.CharField("title", max_length=80)
slug = models.SlugField()
- date = models.DateField(_("publication date"), auto_now_add=True)
+ date = models.DateField("publication date", auto_now_add=True)
created = models.ForeignKey(auth.User,
- verbose_name=_("gallery created by")
+ verbose_name="gallery created by"
)
display_width = models.IntegerField(
- _("width to display full images"),
+ "width to display full images",
default=640)
display_height = models.IntegerField(
- _("height to display full images"),
+ "height to display full images",
default=480)
thumbnail_width = models.IntegerField(
- _("width to display thumbnails"),
+ "width to display thumbnails",
default=150)
thumbnail_height = models.IntegerField(
- _("height to display thumbnails"),
+ "height to display thumbnails",
default=100)
class Meta:
@@ -77,15 +77,15 @@ class Gallery(models.Model):
class Photo(models.Model):
# import os, os.path, Image
- image = models.ImageField(_("Photograph"),
+ image = models.ImageField("Photograph",
upload_to= STOCKPHOTO_BASE + "/%Y/%m/%d/")
- title = models.CharField(_("title"), max_length=80)
- desc = models.TextField(_("description"), blank=True)
+ title = models.CharField("title", max_length=80)
+ desc = models.TextField("description", blank=True)
gallery = models.ForeignKey(Gallery)
- photographer = models.CharField(_("photographer"), max_length=80,
+ photographer = models.CharField("photographer"), max_length=80,
blank=True)
- date = models.DateField(_("date photographed"), blank=True, null=True)
- extra = models.TextField(_("any extra information about the photo"),
+ date = models.DateField("date photographed", blank=True, null=True)
+ extra = models.TextField("any extra information about the photo",
blank=True)
class META:
get_latest_by = ['date']