From 66098da1a520ef9151ad140e40e6b89f13022582 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 1 Apr 2012 13:17:39 +0530 Subject: [PATCH] main image optional, help_text for name_unicode --- mofca/organic/views.py | 6 +++++- mofca/recipes/models.py | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mofca/organic/views.py b/mofca/organic/views.py index e4aad9d..af571eb 100644 --- a/mofca/organic/views.py +++ b/mofca/organic/views.py @@ -8,7 +8,11 @@ def hbt(request): return render_to_response("hbt.html") def pickup(request): - return render_to_response("pickup.html") + context = { + 'x': 'foo', + 'y': 'bar' + } + return render_to_response("pickup.html", context) def seasons_veggies(request): return render_to_response("seasons_veggies.html") diff --git a/mofca/recipes/models.py b/mofca/recipes/models.py index e3b37ba..7fd0de6 100644 --- a/mofca/recipes/models.py +++ b/mofca/recipes/models.py @@ -19,7 +19,7 @@ class TokriVegetable(models.Model): types = models.ManyToManyField("VegetableType", blank=True) slug = models.SlugField() description = models.TextField(blank=True) - main_image = models.ImageField(upload_to='veggie_main_images', null=True) + main_image = models.ImageField(upload_to='veggie_main_images', null=True, blank=True) season = models.ForeignKey("Season", null=True) def __unicode__(self): @@ -72,8 +72,8 @@ class RecipeTokri(models.Model): class AlternativeName(models.Model): ingredient = models.ForeignKey(TokriVegetable) - name_roman = models.CharField(max_length=255) - name_unicode = models.CharField(max_length=255) + name_roman = models.CharField(max_length=255, help_text="Name in Roman Script") + name_unicode = models.CharField(max_length=255, help_text="Name in local language script") language = models.ForeignKey("Language", null=True) def __unicode__(self):