#9620 closed (fixed)
Spatial database tables don't work right with AppCache routines
| Reported by: | jbronn | Owned by: | jbronn |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| Severity: | Keywords: | gis models appcache loading | |
| Cc: | dane.springmeyer@… | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description
Here's an example that assumes django.contrib.gis is in INSTALLED_APPS:
>>> from django.db import models
>>> app = models.get_app('gis')
>>> models.get_models(app)
[]
However, both SpatialRefSys and GeometryColumns are models that should appear (at least when using PostGIS and/or Oracle).
The attached patch adds app_label='gis' to the spatial backend models so they'll play nicely with the AppCache routines.
Attachments (1)
Change History (15)
by , 17 years ago
| Attachment: | gis_app_labels.diff added |
|---|
comment:1 by , 17 years ago
| Status: | new → assigned |
|---|
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 17 years ago
comment:4 by , 17 years ago
| Patch needs improvement: | set |
|---|---|
| Resolution: | fixed |
| Status: | closed → reopened |
comment:5 by , 17 years ago
Just noticed that if these models are added to the appcache then they'll automatically be noticed by django fixtures (and added to the content types table) among likely many other functional parts of django. So, just a reminder to test fixtures behavior with any future patch options...
comment:6 by , 17 years ago
| Cc: | added |
|---|
follow-up: 9 comment:8 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Please open a seperate ticket for related stuff; don't reopen tickets that are marked fixed unless they're really not.
comment:9 by , 17 years ago
comment:10 by , 17 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:11 by , 17 years ago
| milestone: | → 1.1 |
|---|
comment:12 by , 17 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:13 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Adds app_label to spatial backend models.