diff --git a/bookwyrm/forms/admin.py b/bookwyrm/forms/admin.py index ea0f8ccc7..ae15e011b 100644 --- a/bookwyrm/forms/admin.py +++ b/bookwyrm/forms/admin.py @@ -141,6 +141,7 @@ class IntervalScheduleForm(StyledForm): "period": forms.Select(attrs={"aria-describedby": "desc_period"}), } + # pylint: disable=arguments-differ def save(self, request, *args, **kwargs): """This is an outside model so the perms check works differently""" if not request.user.has_perm("bookwyrm.moderate_user"): diff --git a/bookwyrm/forms/custom_form.py b/bookwyrm/forms/custom_form.py index 10f72f967..c604deea4 100644 --- a/bookwyrm/forms/custom_form.py +++ b/bookwyrm/forms/custom_form.py @@ -29,6 +29,7 @@ class StyledForm(ModelForm): class CustomForm(StyledForm): """Check permissions on save""" + # pylint: disable=arguments-differ def save(self, request, *args, **kwargs): """Save and check perms""" self.instance.raise_not_editable(request.user)