diff --git a/.vagrant/machines/default/virtualbox/synced_folders b/.vagrant/machines/default/virtualbox/synced_folders deleted file mode 100644 index 249c862..0000000 --- a/.vagrant/machines/default/virtualbox/synced_folders +++ /dev/null @@ -1 +0,0 @@ -{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/Users/edd/Documents/sites/bakerydemo","disabled":false,"__vagrantfile":true}}} \ No newline at end of file diff --git a/bakerydemo/base/models.py b/bakerydemo/base/models.py index 77d841f..365e333 100644 --- a/bakerydemo/base/models.py +++ b/bakerydemo/base/models.py @@ -122,8 +122,10 @@ class GalleryPage(Page): """ This is a page to list all the locations on the site """ - - CHOICES_LIST = getImageCollections() + try: + CHOICES_LIST = getImageCollections() + except: + CHOICES_LIST = [("", "")] # To return our collection choices for the editor to access we need to # make the choices list a variable rather than a function @@ -145,7 +147,7 @@ class GalleryPage(Page): blank=True) content_panels = Page.content_panels + [ - # FieldPanel('choices'), + FieldPanel('choices'), ImageChooserPanel('image'), FieldPanel('introduction') ]