Skip to content

Commit 96403f7

Browse files
committed
Alphabetize test name.
1 parent e9e751c commit 96403f7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

django_mongodb/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_columns(self):
160160
target = column.target.column
161161
else:
162162
annotations_cnt += 1
163-
target = f"annotation_{annotations_cnt}"
163+
target = f"__annotation{annotations_cnt}"
164164

165165
result.append((target, column))
166166

django_mongodb/features.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
77
supports_date_lookup_using_string = False
88
supports_foreign_keys = False
99
supports_ignore_conflicts = False
10-
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/8
1110
supports_json_field = True
1211
supports_json_field_contains = False
1312
has_native_json_field = True
@@ -285,10 +284,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
285284
"update.tests.SimpleTest.test_empty_update_with_inheritance",
286285
"update.tests.SimpleTest.test_foreign_key_update_with_id",
287286
"update.tests.SimpleTest.test_nonempty_update_with_inheritance",
288-
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform",
289-
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform",
290-
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder",
291287
"model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression",
288+
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder",
289+
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform",
290+
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform",
292291
},
293292
"Test inspects query for SQL": {
294293
"lookup.tests.LookupTests.test_in_ignore_none",

0 commit comments

Comments
 (0)