Skip to content

Commit 2abf5b3

Browse files
committed
update for Django 5.1
1 parent d7c3a12 commit 2abf5b3

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Changelog
22

3-
## 5.0.1 - Unreleased
3+
## 5.1 - Unreleased
44

5-
- Confirm support for CockroachDB 23.2.x (no code changes required), which adds
6-
support for ordering by JSON.
7-
8-
- Confirm support for CockroachDB 24.1.x (no code changes required).
9-
10-
## 5.0 - 2023-12-11
11-
12-
Initial release for Django 5.0.x and CockroachDB 22.2.x and 23.1.x.
5+
Initial release for Django 5.1.x and CockroachDB 23.1.x, 23.2.x, and 24.1.x.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ production it is advised to use the package built from sources.
2121
## Install and usage
2222

2323
Use the version of django-cockroachdb that corresponds to your version of
24-
Django. For example, to get the latest compatible release for Django 5.0.x:
24+
Django. For example, to get the latest compatible release for Django 5.1.x:
2525

26-
`pip install django-cockroachdb==5.0.*`
26+
`pip install django-cockroachdb==5.1.*`
2727

2828
The minor release number of Django doesn't correspond to the minor release
2929
number of django-cockroachdb. Use the latest minor release of each.

django-test-suite/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ VERSION=$1
77

88
# clone django into the repo.
99
rm -rf _django_repo
10-
git clone --depth 1 --single-branch --branch cockroach-5.0.x https://github.com/timgraham/django _django_repo
10+
git clone --depth 1 --single-branch --branch cockroach-5.1.x https://github.com/timgraham/django _django_repo
1111

1212
# install the django requirements.
1313
cd _django_repo/tests/

django_cockroachdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '5.0'
1+
__version__ = '5.1a0'
22

33
# Check Django compatibility before other imports which may fail if the
44
# wrong version of Django is installed.

django_cockroachdb/features.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def django_test_expected_failures(self):
151151
# CockroachDB doesn't support dropping the primary key.
152152
'schema.tests.SchemaTests.test_alter_int_pk_to_int_unique',
153153
# CockroachDB doesn't support changing the primary key of table.
154+
# psycopg.errors.InvalidColumnReference: column "id" is referenced
155+
# by the primary key
156+
'migrations.test_operations.OperationTests.test_alter_id_pk_to_uuid_pk',
154157
'schema.tests.SchemaTests.test_alter_not_unique_field_to_primary_key',
155158
'schema.tests.SchemaTests.test_primary_key',
156159
# SmallAutoField doesn't work:
@@ -179,6 +182,10 @@ def django_test_expected_failures(self):
179182
'aggregation.tests.AggregateTestCase.test_aggregation_default_expression',
180183
# ProgrammingError: VALUES types int and float cannot be matched
181184
'field_defaults.tests.DefaultTests.test_bulk_create_mixed_db_defaults_function',
185+
# concat(): unknown signature: concat(string, int2) (desired <string>)
186+
'db_functions.text.test_concat.ConcatTests.test_concat_non_str',
187+
# unknown signature: concat(varchar, int) (returning <string>)
188+
'migrations.test_operations.OperationTests.test_add_generate_field',
182189
})
183190
if not self.is_cockroachdb_23_2:
184191
expected_failures.update({
@@ -187,6 +194,8 @@ def django_test_expected_failures(self):
187194
'schema.tests.SchemaTests.test_func_index_json_key_transform',
188195
# ordering by JSON isn't supported:
189196
# https://github.com/cockroachdb/cockroach/issues/35706
197+
'db_functions.comparison.test_json_object.JSONObjectTests.test_order_by_key',
198+
'db_functions.comparison.test_json_object.JSONObjectTests.test_order_by_nested_key',
190199
'expressions_window.tests.WindowFunctionTests.test_key_transform',
191200
'model_fields.test_jsonfield.TestQuerying.test_deep_distinct',
192201
'model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder',

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ long_description_content_type = text/markdown
1111
classifiers =
1212
Development Status :: 5 - Production/Stable
1313
Framework :: Django
14-
Framework :: Django :: 5.0
14+
Framework :: Django :: 5.1
1515
License :: OSI Approved :: Apache Software License
1616
Operating System :: OS Independent
1717
Programming Language :: Python

0 commit comments

Comments
 (0)