diff --git a/.github/workflows/test-mysql.yml b/.github/workflows/test-mysql.yml index f972f4f..d8b1929 100644 --- a/.github/workflows/test-mysql.yml +++ b/.github/workflows/test-mysql.yml @@ -10,7 +10,7 @@ on: jobs: test-mysql: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: max-parallel: 4 matrix: diff --git a/.github/workflows/test-pg.yml b/.github/workflows/test-pg.yml index 397f156..3825da7 100644 --- a/.github/workflows/test-pg.yml +++ b/.github/workflows/test-pg.yml @@ -10,7 +10,7 @@ on: jobs: test-pg: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: max-parallel: 4 matrix: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c43950d..2d6a88c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: max-parallel: 4 matrix: diff --git a/django_hashids/field.py b/django_hashids/field.py index a63f28f..cf5439b 100644 --- a/django_hashids/field.py +++ b/django_hashids/field.py @@ -1,13 +1,13 @@ from django.conf import settings from django.core.exceptions import FieldError -from django.db.models import Field +from django.db.models import CharField, Field from django.utils.functional import cached_property from hashids import Hashids from .exceptions import ConfigError, RealFieldDoesNotExistError -class HashidsField(Field): +class HashidsField(CharField): concrete = False allowed_lookups = ("exact", "iexact", "in", "gt", "gte", "lt", "lte", "isnull") # these should never change, even when Hashids updates diff --git a/pyproject.toml b/pyproject.toml index 4080247..ae7420f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-hashids" -version = "0.7.0" +version = "0.7.1" readme = "README.md" description = "Non-intrusive hashids library for Django" homepage = "https://github.com/ericls/django-hashids"