Commit f98b5688 authored by Giannis Tsapelas's avatar Giannis Tsapelas
Browse files

updated datasets and admin

parent d3a0c548
Pipeline #3058 waiting for manual action with stages
in 2 minutes and 49 seconds
...@@ -6,7 +6,8 @@ from aggregator.models import * ...@@ -6,7 +6,8 @@ from aggregator.models import *
class DatasetAdmin(admin.ModelAdmin): class DatasetAdmin(admin.ModelAdmin):
pass fields = ("title", "description", "order", "table_name", "temporalCoverageBegin", "temporalCoverageEnd", "license", "observations", "publisher", "update_frequency", "last_updated", "db_user")
admin.site.register(Dataset, DatasetAdmin) admin.site.register(Dataset, DatasetAdmin)
...@@ -24,3 +25,10 @@ class VariableAdmin(admin.ModelAdmin): ...@@ -24,3 +25,10 @@ class VariableAdmin(admin.ModelAdmin):
admin.site.register(Variable, VariableAdmin) admin.site.register(Variable, VariableAdmin)
class OrganizationAdmin(admin.ModelAdmin):
pass
admin.site.register(Organization, OrganizationAdmin)
[ [
{
"model": "aggregator.organization",
"pk": 1,
"fields": {
"title": "ILVO",
"description": "ILVO"
}
},
{
"model": "aggregator.organization",
"pk": 2,
"fields": {
"title": "AgroKnow",
"description": "AgroKnow"
}
},
{
"model": "aggregator.organization",
"pk": 3,
"fields": {
"title": "CYBELE",
"description": "CYBELE"
}
},
{ {
"model": "aggregator.dataset", "model": "aggregator.dataset",
"pk": 45, "pk": 45,
......
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