From 85fec94e25e471e4bcdeeafba91deddecd69033a Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 23 Jan 2009 02:24:54 -0500 Subject: stripped weird commenting --- bn_django/photos/models.py | 26 +++++++++++++------------- 1 file 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'] -- cgit v1.2.3