Changes between Initial Version and Version 1 of Ticket #36694, comment 2


Ignore:
Timestamp:
Oct 28, 2025, 9:36:40 PM (11 hours ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36694, comment 2

    initial v1  
    11Confirmed this is a bug in in `django.contrib.gis.db.backends.postgist` (I inferred you were using PostGIS given you use `contrib.postgres.ArrayField`).
    22
    3 The `SchemaEditor._create_index_sql` method delegates to `._create_spatial_index_sql` to provide some defaults (e.g. `opclasses`) but fails to pass along `kwargs` such as `condition`, `include`, `expressions`, etc. [https://github.com/django/django/blob/43933a1dca07047e95ec990d9289d0212668009e/django/contrib/gis/db/backends/postgis/schema.py#L98-L121 It seems broken in multiple ways].
     3The `SchemaEditor._create_index_sql` method delegates to `._create_spatial_index_sql` to provide some defaults (e.g. `opclasses`) but fails to pass along `kwargs` such as `condition`, `include`, `expressions`, etc, when calling `super()`.
     4
     5[https://github.com/django/django/blob/43933a1dca07047e95ec990d9289d0212668009e/django/contrib/gis/db/backends/postgis/schema.py#L98-L121 It seems broken in multiple ways].
Back to Top