OpenLayersWidget needs _has_changed() method
|Reported by:||django@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.
Change History (4)
Changed 2 years ago by django@…
comment:1 Changed 2 years ago by django@…
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset