Skip to content

Commit

Permalink
Fix syncdb step
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Poulain committed Aug 6, 2013
1 parent 83559fb commit 5d9df66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions codalab/initial_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"fields": {
"category": 1,
"initial_visibility": 1,
"codename": "page1",
"required": true,
"rank": 0,
"label": "Overview"
Expand All @@ -84,6 +85,7 @@
"fields": {
"category": 1,
"initial_visibility": 1,
"codename": "page2",
"required": true,
"rank": 1,
"label": "Evaluate"
Expand All @@ -95,6 +97,7 @@
"fields": {
"category": 1,
"initial_visibility": 1,
"codename": "page3",
"required": true,
"rank": 2,
"label": "Terms and Conditions"
Expand All @@ -106,6 +109,7 @@
"fields": {
"category": 2,
"initial_visibility": 1,
"codename": "page4",
"required": true,
"rank": 0,
"label": "Get data"
Expand Down
1 change: 0 additions & 1 deletion codalab/scripts/competitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5d9df66

Please sign in to comment.