diff --git a/com/templates/com/screen_slideshow.jinja b/com/templates/com/screen_slideshow.jinja
index 448f8dfc..0374257e 100644
--- a/com/templates/com/screen_slideshow.jinja
+++ b/com/templates/com/screen_slideshow.jinja
@@ -3,7 +3,7 @@
{% trans %}Slideshow{% endtrans %}
-
+
diff --git a/com/views.py b/com/views.py
index 1b7ab8bc..f9993b3c 100644
--- a/com/views.py
+++ b/com/views.py
@@ -685,8 +685,12 @@ class PosterEditBaseView(UpdateView):
def get_initial(self):
return {
- "date_begin": self.object.date_begin.strftime("%Y-%m-%d %H:%M:%S"),
- "date_end": self.object.date_end.strftime("%Y-%m-%d %H:%M:%S"),
+ "date_begin": self.object.date_begin.strftime("%Y-%m-%d %H:%M:%S")
+ if self.object.date_begin
+ else None,
+ "date_end": self.object.date_end.strftime("%Y-%m-%d %H:%M:%S")
+ if self.object.date_end
+ else None,
}
def dispatch(self, request, *args, **kwargs):