Skip to content

Commit

Permalink
docstrings for cleanliness
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoStorm96 committed Jan 31, 2024
1 parent caca593 commit bc0db2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/views/session_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def delete(self, request, *args, **kwargs):


class SessionCreate(RedirectActionView):
"""Creates a session, from a study pk and redirects to SessionUpdate()
for that session."""

def action(self, request):
study = Study.objects.get(pk=self.kwargs["pk"])
order = study.session_set.count() + 1
Expand Down
3 changes: 3 additions & 0 deletions tasks/views/task_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@


class TaskCreate(RedirectActionView):
"""Creates a task, from a session pk and redirects to TaskUpdate()
for that task."""

def action(self, request):
session = Session.objects.get(pk=self.kwargs["pk"])
order = session.task_set.count() + 1
Expand Down

0 comments on commit bc0db2f

Please sign in to comment.