Commit bb22eeba authored by Arkadiusz Hiler's avatar Arkadiusz Hiler
Browse files

Update to Django 2.2 \o/


Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 732e033b
......@@ -549,6 +549,11 @@ class Series(models.Model):
else:
return self.name
def __hash__(self):
if self.pk is None:
raise TypeError("Model instances without pk are unhashable")
return hash(self.pk)
def __str__(self):
return self.name
......
......@@ -6,7 +6,7 @@ skipsdist = True
[testenv]
deps =
-r{toxinidir}/docs/requirements-dev.txt
django21: django>=2.1,<2.2
django22: django>=2.2,<2.3
tblib
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment