Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a geonode_type field in ResourceBase model #1350

Closed
capooti opened this issue Jan 23, 2014 · 2 comments
Closed

Add a geonode_type field in ResourceBase model #1350

capooti opened this issue Jan 23, 2014 · 2 comments
Labels
feature A new feature to be added to the codebase
Milestone

Comments

@capooti
Copy link
Member

capooti commented Jan 23, 2014

As discussed here:
#1347

I propose to add a geonode_type field in ResouceBase (after releasing GeoNode 2.0), in order to populate it with the corresponding values (layer, map, document) when instantiating the object.
This way we will have a clear way to query ResourceBase, without getting the information in the ugly way we currently do (https://github.com/GeoNode/geonode/blob/master/geonode/base/models.py#L306).

@simod
Copy link
Member

simod commented Apr 16, 2014

We have plans to use django-polymorphic that will solve this. Let's wait untile the api work will be in master then close this.

@ingenieroariel ingenieroariel modified the milestones: 2.1, 2.0.1 Apr 16, 2014
@simod
Copy link
Member

simod commented Sep 23, 2014

closing as should be solved by polymorphic

@simod simod closed this as completed Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to be added to the codebase
Projects
None yet
Development

No branches or pull requests

3 participants