Opened 8 weeks ago

Last modified 5 weeks ago

#28659 new Bug

LayerMapping fails with unique=True and Geometry column is None

Reported by: Melvyn Sopacua Owned by: nobody
Component: GIS Version: master
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 Melvyn Sopacua)

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 (6)

comment:1 Changed 8 weeks ago by Melvyn Sopacua

Description: modified (diff)

comment:3 Changed 8 weeks ago by Claude Paroz

Triage Stage: UnreviewedAccepted

comment:4 Changed 8 weeks ago by Melvyn Sopacua

Has patch: set
Last edited 5 weeks ago by Tim Graham (previous) (diff)

comment:5 Changed 8 weeks ago by Melvyn Sopacua

Version: 1.11master

comment:6 Changed 5 weeks ago by Tim Graham

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top