mirror of
https://github.com/ae-utbm/sith.git
synced 2025-01-06 15:11:21 +00:00
Fix poster edition and display bug
This commit is contained in:
parent
2f9e5bfee1
commit
82e88dcab0
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>{% trans %}Slideshow{% endtrans %}</title>
|
<title>{% trans %}Slideshow{% endtrans %}</title>
|
||||||
<link href="{{ static('css/slideshow.scss') }}" rel="stylesheet" type="text/css" />
|
<link href="{{ static('css/slideshow.scss') }}" rel="stylesheet" type="text/css" />
|
||||||
<script type="module" src="{{ static('bundled/jquery-index.js') }}"></script>
|
<script src="{{ static('bundled/vendored/jquery.min.js') }}"></script>
|
||||||
<script src="{{ static('com/js/slideshow.js') }}"></script>
|
<script src="{{ static('com/js/slideshow.js') }}"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -685,8 +685,12 @@ class PosterEditBaseView(UpdateView):
|
|||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
return {
|
return {
|
||||||
"date_begin": self.object.date_begin.strftime("%Y-%m-%d %H:%M:%S"),
|
"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"),
|
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):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user