misc: fix bad-classmethod-argument pylint error (#56288)

This commit is contained in:
Lauréline Guérin 2021-08-30 11:20:30 +02:00
parent d9a0c58b07
commit 7a96ec095e
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class ChartCell(CellBase):
verbose_name = _('Chart (legacy)')
@classmethod
def is_enabled(self):
def is_enabled(cls):
return (
settings.LEGACY_CHART_CELL_ENABLED
and hasattr(settings, 'KNOWN_SERVICES')
@ -237,7 +237,7 @@ class ChartNgCell(CellBase):
verbose_name = _('Chart')
@classmethod
def is_enabled(self):
def is_enabled(cls):
return settings.KNOWN_SERVICES.get('bijoe') or settings.STATISTICS_PROVIDERS
def get_default_form_class(self):

View File

@ -44,7 +44,7 @@ class TrackingCodeView(View):
return super().dispatch(*args, **kwargs)
@classmethod
def search(self, code, request, wcs_site=None):
def search(cls, code, request, wcs_site=None):
code = code.strip().upper()
if wcs_site:
wcs_sites = [get_wcs_services().get(wcs_site)]