mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Update views.py
This commit is contained in:
parent
a198886ab5
commit
6f70fc763f
@ -349,6 +349,9 @@ class AddSourceView(EditSourceMixin, CreateView):
|
|||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
initial = super().get_initial()
|
initial = super().get_initial()
|
||||||
|
initial['target_schedule'] = timezone.now().replace(
|
||||||
|
second=0, microsecond=0,
|
||||||
|
).isoformat(timespec='minutes')
|
||||||
for k, v in self.prepopulated_data.items():
|
for k, v in self.prepopulated_data.items():
|
||||||
initial[k] = v
|
initial[k] = v
|
||||||
return initial
|
return initial
|
||||||
|
Loading…
Reference in New Issue
Block a user