Opened 7 years ago
Closed 6 years ago
#28659 closed Bug (fixed)
LayerMapping fails with unique=True and Geometry column is None
Reported by: | Melvyn Sopacua | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
When adding a geometry to a model, one way to do it is set null=True for the field. The LayerMapping utility cannot handle updating the field as it assumes getattr on a Model's Geometry field can never return None.
Adding test to test suite, PR incoming.
Change History (7)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 7 years ago
Has patch: | set |
---|
New PR as per review by Tim is 9188.
Version 0, edited 7 years ago by (next)
comment:5 by , 7 years ago
Version: | 1.11 → master |
---|
comment:6 by , 7 years ago
Patch needs improvement: | set |
---|
Note:
See TracTickets
for help on using tickets.
Test: https://github.com/melvyn-sopacua/django/commit/63814ad0cd93e5bb7bcd700420d56e61ff027b57