diff options
Diffstat (limited to 'bn_django/photos')
-rw-r--r-- | bn_django/photos/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |