mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 21:46:44 +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):
|
||||
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():
|
||||
initial[k] = v
|
||||
return initial
|
||||
|
Loading…
Reference in New Issue
Block a user