Return the GeometryField instance associated with the geographic column.
(self)
| 537 | ) from exc |
| 538 | |
| 539 | def geometry_field(self): |
| 540 | """ |
| 541 | Return the GeometryField instance associated with the geographic |
| 542 | column. |
| 543 | """ |
| 544 | # Use `get_field()` on the model's options so that we |
| 545 | # get the correct field instance if there's model inheritance. |
| 546 | opts = self.model._meta |
| 547 | return opts.get_field(self.geom_field) |
| 548 | |
| 549 | def make_multi(self, geom_type, model_field): |
| 550 | """ |