diff --git a/kuma/core/jobs.py b/kuma/core/jobs.py index 1d34d439dc3..a016803dbf9 100644 --- a/kuma/core/jobs.py +++ b/kuma/core/jobs.py @@ -20,7 +20,7 @@ def hash(self, value): return hashlib.md5(six.b(':').join(value)).hexdigest() -class IPBanJob(Job): +class IPBanJob(KumaJob): lifetime = 60 * 60 * 3 refresh_timeout = 60 @@ -30,10 +30,5 @@ def fetch(self, ip): return "0/s" return "60/m" - def key(self, ip): - # override the default way to make sure we handle unicode, - # bytestring and integer versions of the pk the same - return 'kuma:core:ipban:%s' % ip - def empty(self): return []