Opened 7 years ago

Last modified 6 years ago

#28659 closed Bug

LayerMapping fails with unique=True and Geometry column is None — at Version 1

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

comment:1 by Melvyn Sopacua, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top