Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test-mysql:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
max-parallel: 4
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test-pg:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
max-parallel: 4
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
max-parallel: 4
matrix:
Expand Down
4 changes: 2 additions & 2 deletions django_hashids/field.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down