diff options
-rw-r--r-- | app/birds/admin.py | 2 | ||||
-rw-r--r-- | app/pages/build.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/birds/admin.py b/app/birds/admin.py index a8e3a0b..77ebc8a 100644 --- a/app/birds/admin.py +++ b/app/birds/admin.py @@ -21,8 +21,8 @@ class BirdAdmin(admin.ModelAdmin): class GalleryFormPlus(GalleryForm): def __init__(self, *args, **kwargs): - self.base_fields['seen_by'].widget = CustomSelectMultiple() super(GalleryFormPlus, self).__init__(*args, **kwargs) + self.base_fields['seen_by'].widget = CustomSelectMultiple() class Meta: model = BirdSighting diff --git a/app/pages/build.py b/app/pages/build.py index 94719a2..f63fd89 100644 --- a/app/pages/build.py +++ b/app/pages/build.py @@ -14,7 +14,7 @@ class BuildPages(BuildNew): def build_essays(self): qs = self.model.objects.filter(path="essays") - c = Context({'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL}) + c = {'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL} t = render_to_string('archives/essays.html', c).encode('utf-8') self.write_file('essays/', t) |