main image optional, help_text for name_unicode
This commit is contained in:
parent
85578f10aa
commit
66098da1a5
|
@ -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")
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user