1
0
Fork 0

updates wording and fixes get or create logic

This commit is contained in:
Mouse Reeve 2024-01-02 13:28:25 -08:00
parent 8be9e91d21
commit 193a1c7d54
3 changed files with 5 additions and 3 deletions

View file

@ -77,6 +77,8 @@ class Dashboard(View):
def post(self, request):
"""Create a schedule task to check for updates"""
schedule_form = forms.IntervalScheduleForm(request.POST)
if not schedule_form.is_valid():
raise schedule_form.ValidationError(schedule_form.errors)
with transaction.atomic():
schedule, _ = IntervalSchedule.objects.get_or_create(