Commit 2b4d602a authored by Giannis Tsapelas's avatar Giannis Tsapelas
Browse files

aggregator admin fields

parent 6b04b4fd
......@@ -6,22 +6,25 @@ from aggregator.models import *
class DatasetAdmin(admin.ModelAdmin):
pass
# fields = ("title", "description", "order", "table_name", "temporalCoverageBegin", "temporalCoverageEnd", "observations", "publisher", "update_frequency", "db_user")
fields = ("metadata_id", "title", "description", "order", "stored_at", "table_name", "private", "spatialEast",
"spatialSouth", "spatialNorth", "spatialWest", "temporalCoverageBegin", "temporalCoverageEnd",
"license", "observations", "publisher", "update_frequency", "db_user")
admin.site.register(Dataset, DatasetAdmin)
class DimensionAdmin(admin.ModelAdmin):
pass
fields = ("variable", "name", "title", 'unit', 'description',
'dataType', 'original_column_name')
admin.site.register(Dimension, DimensionAdmin)
class VariableAdmin(admin.ModelAdmin):
pass
fields = ("dataset", "name", "title", 'unit',
'description', 'dataType', 'original_column_name')
admin.site.register(Variable, VariableAdmin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment