def schedule_task(date, command): t = ScheduledTasks() t.date = date t.command = command t.repeat = False t.save()