Opened 5 years ago

Closed 4 years ago

#17328 closed Bug (fixed)

OpenLayersWidget needs _has_changed() method

Reported by: django@… Owned by: nobody
Component: GIS Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The OpenLayersWidget does not currently define a custom _has_changed() method. This leads to the problem that it will always report a relevant form field as having been changed, even when that is not the case (the initial value is usually a geometry object, where as the data for comparison is a string.

Many widgets overload _has_changed(), providing a custom method of testing equivalence, but this appears to have been forgotten for OpenLayersWidget.

Attachments (1)

ticket17328.patch (3.2 KB) - added by django@… 5 years ago.
has_changed for OpenLayersWidget

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by django@…

Attachment: ticket17328.patch added

has_changed for OpenLayersWidget

comment:1 Changed 5 years ago by django@…

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 5 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:3 Changed 4 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In [9c096ab981d57123a0774f9ddf229084e0bb54a1]:

Fixed #17328 -- Added OpenLayersWidget _has_changed method

Thanks Will Hardy for the report and the patch.

Note: See TracTickets for help on using tickets.
Back to Top