#11969 closed (fixed)
Syncdb doesn't honor managed=False setting with Geodjango
| Reported by: | Jani Tiainen | Owned by: | nobody |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Erin Kelly, Matt Boersma | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Geodjango "geomanager" based models do not honor "managed = False" setting but tries to forcefully create spatial index and insert spatial metadata in Oracle.
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Cc: | added |
|---|
comment:3 by , 16 years ago
| Keywords: | oracle removed |
|---|---|
| milestone: | → 1.2 |
| Summary: | Syncdb doesn't honor managed=False setting with Oracle and Geodjango → Syncdb doesn't honor managed=False setting with Geodjango |
This is currently fixed in trunk, because GeometryField no longer uses the post_create_sql hook. However, for API consistency I will commit a fix for the post_create_sql hook to both trunk and 1.1.X (which is still affected). Moreover, this is not an Oracle-specific bug, as it affects all backends.
comment:4 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:5 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
It seems to happen when model (with spatial field) is based on the view.
When model points to the normal table (via db_table = 'my table') syncdb works alright (obeying "managed = False"), when it points to the view then syncdb keeps trying to install it, including attempts to create spatial medatada and spatial indexes.