From 75bc6a976f98e36a9426e6115d3f628a8fa73762 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 25 Jan 2009 13:05:25 -0500 Subject: whew artifact stuff, all basic style --- bn_django/photos/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bn_django/photos') diff --git a/bn_django/photos/models.py b/bn_django/photos/models.py index 3d47cf0..fd31fa6 100644 --- a/bn_django/photos/models.py +++ b/bn_django/photos/models.py @@ -81,7 +81,7 @@ class Photo(models.Model): upload_to= STOCKPHOTO_BASE + "/%Y/%m/%d/") title = models.CharField("title", max_length=80) desc = models.TextField("description", blank=True) - gallery = models.ForeignKey(Gallery) + gallery = models.ForeignKey(Gallery, blank=True, null=True) photographer = models.CharField("photographer", max_length=80, blank=True) date = models.DateField("date photographed", blank=True, null=True) -- cgit v1.2.3