From 5d9df66188c8ab4d205f217bd7f17313c622f4c7 Mon Sep 17 00:00:00 2001 From: Christophe Poulain Date: Mon, 5 Aug 2013 19:11:04 -0700 Subject: [PATCH] Fix syncdb step --- codalab/initial_data.json | 4 ++++ codalab/scripts/competitions.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/codalab/initial_data.json b/codalab/initial_data.json index 1938fb4de..2652cb0e0 100644 --- a/codalab/initial_data.json +++ b/codalab/initial_data.json @@ -73,6 +73,7 @@ "fields": { "category": 1, "initial_visibility": 1, + "codename": "page1", "required": true, "rank": 0, "label": "Overview" @@ -84,6 +85,7 @@ "fields": { "category": 1, "initial_visibility": 1, + "codename": "page2", "required": true, "rank": 1, "label": "Evaluate" @@ -95,6 +97,7 @@ "fields": { "category": 1, "initial_visibility": 1, + "codename": "page3", "required": true, "rank": 2, "label": "Terms and Conditions" @@ -106,6 +109,7 @@ "fields": { "category": 2, "initial_visibility": 1, + "codename": "page4", "required": true, "rank": 0, "label": "Get data" diff --git a/codalab/scripts/competitions.py b/codalab/scripts/competitions.py index 342da8ac8..2d696a7de 100644 --- a/codalab/scripts/competitions.py +++ b/codalab/scripts/competitions.py @@ -49,7 +49,6 @@ brats2012.pagecontent = pc brats2012.save() -DefaultContentItem.objects.get(codename="overview") Page.objects.create(category=details_category, container=pc, label="Overview", rank=0, codename="overview", html=open(os.path.join(os.path.dirname(__file__), "brats2012_overview.html")).read()) Page.objects.create(category=details_category, container=pc, label="Evaluation", rank=1, codename="evaluation",