From 8d84c63d1a6e89e906eca269dd82d815af273d13 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Mon, 19 Apr 2021 09:20:47 +0200 Subject: [PATCH] Polish some docstrings to avoid Sphinx errors --- markup/utils.py | 2 +- submissions/mixins.py | 1 + submissions/views.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/markup/utils.py b/markup/utils.py index fdf972f9d..6a4a87569 100644 --- a/markup/utils.py +++ b/markup/utils.py @@ -98,7 +98,7 @@ def match_rst_hyperlink_reference(text): # reStructuredText roles and directives def match_rst_role(text, role=None): """ - Return first match object of regex search for given ReST role :role:`... . + Return first match object of regex search for given ReST role :role:... . If no role is given, all roles in ReST_ROLES are tested one by one. """ diff --git a/submissions/mixins.py b/submissions/mixins.py index 86e1ba8d4..ee7a26bd1 100644 --- a/submissions/mixins.py +++ b/submissions/mixins.py @@ -89,6 +89,7 @@ class SubmissionAdminViewMixin(FriendlyPermissionMixin, SubmissionFormViewMixin) This method is used in all Class-Based-Views. However, if one overwrites either one of the - get_object() - get_queryset() + methods, please don't forget to call super().method_name() to not remove this filter! """ qs = super().get_queryset() diff --git a/submissions/views.py b/submissions/views.py index 88517b68c..28008f714 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -2291,6 +2291,7 @@ def submissions_processing_timescales(submissions, phase): :params: * phase: one of `screening`, `acceptance` + """ timescales = [] now = timezone.now() -- GitLab