From 7b2660c7772164b5bb81488d4f939320ce23570e Mon Sep 17 00:00:00 2001 From: shen Date: Tue, 11 Nov 2025 17:44:30 -0500 Subject: [PATCH 1/2] use charfield as base --- django_hashids/field.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" From 921126f0368fe3b33b3ba9883c1b85c269c9f894 Mon Sep 17 00:00:00 2001 From: shen Date: Tue, 11 Nov 2025 19:19:51 -0500 Subject: [PATCH 2/2] bump test image ubuntu version --- .github/workflows/test-mysql.yml | 2 +- .github/workflows/test-pg.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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: