Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
6e9fb2a9
Commit
6e9fb2a9
authored
Sep 25, 2014
by
Chris Dodge
Committed by
Jonathan Piacenti
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update schema for workgroup feedback
relabel migration at 0008
parent
134a7016
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
12 deletions
+48
-12
lms/djangoapps/projects/migrations/0008_auto__larger_document_url_field.py
+42
-6
lms/djangoapps/projects/models.py
+6
-6
No files found.
lms/djangoapps/projects/migrations/000
7
_auto__larger_document_url_field.py
→
lms/djangoapps/projects/migrations/000
8
_auto__larger_document_url_field.py
View file @
6e9fb2a9
...
@@ -9,14 +9,50 @@ class Migration(SchemaMigration):
...
@@ -9,14 +9,50 @@ class Migration(SchemaMigration):
def
forwards
(
self
,
orm
):
def
forwards
(
self
,
orm
):
# Changing field 'WorkgroupSubmissionReview.question'
db
.
alter_column
(
'projects_workgroupsubmissionreview'
,
'question'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
1024
))
# Changing field 'WorkgroupSubmissionReview.answer'
db
.
alter_column
(
'projects_workgroupsubmissionreview'
,
'answer'
,
self
.
gf
(
'django.db.models.fields.TextField'
)())
# Changing field 'WorkgroupPeerReview.question'
db
.
alter_column
(
'projects_workgrouppeerreview'
,
'question'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
1024
))
# Changing field 'WorkgroupPeerReview.answer'
db
.
alter_column
(
'projects_workgrouppeerreview'
,
'answer'
,
self
.
gf
(
'django.db.models.fields.TextField'
)())
# Changing field 'WorkgroupSubmission.document_url'
# Changing field 'WorkgroupSubmission.document_url'
db
.
alter_column
(
'projects_workgroupsubmission'
,
'document_url'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
2048
))
db
.
alter_column
(
'projects_workgroupsubmission'
,
'document_url'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
2048
))
# Changing field 'WorkgroupReview.question'
db
.
alter_column
(
'projects_workgroupreview'
,
'question'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
1024
))
# Changing field 'WorkgroupReview.answer'
db
.
alter_column
(
'projects_workgroupreview'
,
'answer'
,
self
.
gf
(
'django.db.models.fields.TextField'
)())
def
backwards
(
self
,
orm
):
def
backwards
(
self
,
orm
):
# Changing field 'WorkgroupSubmissionReview.question'
db
.
alter_column
(
'projects_workgroupsubmissionreview'
,
'question'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
# Changing field 'WorkgroupSubmissionReview.answer'
db
.
alter_column
(
'projects_workgroupsubmissionreview'
,
'answer'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
# Changing field 'WorkgroupPeerReview.question'
db
.
alter_column
(
'projects_workgrouppeerreview'
,
'question'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
# Changing field 'WorkgroupPeerReview.answer'
db
.
alter_column
(
'projects_workgrouppeerreview'
,
'answer'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
# Changing field 'WorkgroupSubmission.document_url'
# Changing field 'WorkgroupSubmission.document_url'
db
.
alter_column
(
'projects_workgroupsubmission'
,
'document_url'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
db
.
alter_column
(
'projects_workgroupsubmission'
,
'document_url'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
# Changing field 'WorkgroupReview.question'
db
.
alter_column
(
'projects_workgroupreview'
,
'question'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
# Changing field 'WorkgroupReview.answer'
db
.
alter_column
(
'projects_workgroupreview'
,
'answer'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
))
models
=
{
models
=
{
'api_manager.organization'
:
{
'api_manager.organization'
:
{
'Meta'
:
{
'object_name'
:
'Organization'
},
'Meta'
:
{
'object_name'
:
'Organization'
},
...
@@ -89,24 +125,24 @@ class Migration(SchemaMigration):
...
@@ -89,24 +125,24 @@ class Migration(SchemaMigration):
},
},
'projects.workgrouppeerreview'
:
{
'projects.workgrouppeerreview'
:
{
'Meta'
:
{
'object_name'
:
'WorkgroupPeerReview'
},
'Meta'
:
{
'object_name'
:
'WorkgroupPeerReview'
},
'answer'
:
(
'django.db.models.fields.
CharField'
,
[],
{
'max_length'
:
'255'
}),
'answer'
:
(
'django.db.models.fields.
TextField'
,
[],
{
}),
'content_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'content_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'created'
:
(
'model_utils.fields.AutoCreatedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'created'
:
(
'model_utils.fields.AutoCreatedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'modified'
:
(
'model_utils.fields.AutoLastModifiedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'modified'
:
(
'model_utils.fields.AutoLastModifiedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'question'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
255
'
}),
'question'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
1024
'
}),
'reviewer'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
'reviewer'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'workgroup_peer_reviewees'"
,
'to'
:
"orm['auth.User']"
}),
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'workgroup_peer_reviewees'"
,
'to'
:
"orm['auth.User']"
}),
'workgroup'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'peer_reviews'"
,
'to'
:
"orm['projects.Workgroup']"
})
'workgroup'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'peer_reviews'"
,
'to'
:
"orm['projects.Workgroup']"
})
},
},
'projects.workgroupreview'
:
{
'projects.workgroupreview'
:
{
'Meta'
:
{
'object_name'
:
'WorkgroupReview'
},
'Meta'
:
{
'object_name'
:
'WorkgroupReview'
},
'answer'
:
(
'django.db.models.fields.
CharField'
,
[],
{
'max_length'
:
'255'
}),
'answer'
:
(
'django.db.models.fields.
TextField'
,
[],
{
}),
'content_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'content_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'created'
:
(
'model_utils.fields.AutoCreatedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'created'
:
(
'model_utils.fields.AutoCreatedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'modified'
:
(
'model_utils.fields.AutoLastModifiedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'modified'
:
(
'model_utils.fields.AutoLastModifiedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'question'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
255
'
}),
'question'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
1024
'
}),
'reviewer'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
'reviewer'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
'workgroup'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'workgroup_reviews'"
,
'to'
:
"orm['projects.Workgroup']"
})
'workgroup'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'workgroup_reviews'"
,
'to'
:
"orm['projects.Workgroup']"
})
},
},
...
@@ -124,12 +160,12 @@ class Migration(SchemaMigration):
...
@@ -124,12 +160,12 @@ class Migration(SchemaMigration):
},
},
'projects.workgroupsubmissionreview'
:
{
'projects.workgroupsubmissionreview'
:
{
'Meta'
:
{
'object_name'
:
'WorkgroupSubmissionReview'
},
'Meta'
:
{
'object_name'
:
'WorkgroupSubmissionReview'
},
'answer'
:
(
'django.db.models.fields.
CharField'
,
[],
{
'max_length'
:
'255'
}),
'answer'
:
(
'django.db.models.fields.
TextField'
,
[],
{
}),
'content_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'content_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'created'
:
(
'model_utils.fields.AutoCreatedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'created'
:
(
'model_utils.fields.AutoCreatedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'modified'
:
(
'model_utils.fields.AutoLastModifiedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'modified'
:
(
'model_utils.fields.AutoLastModifiedField'
,
[],
{
'default'
:
'datetime.datetime.now'
}),
'question'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
255
'
}),
'question'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
1024
'
}),
'reviewer'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
'reviewer'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
'submission'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'reviews'"
,
'to'
:
"orm['projects.WorkgroupSubmission']"
})
'submission'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'related_name'
:
"'reviews'"
,
'to'
:
"orm['projects.WorkgroupSubmission']"
})
}
}
...
...
lms/djangoapps/projects/models.py
View file @
6e9fb2a9
...
@@ -93,8 +93,8 @@ class WorkgroupReview(TimeStampedModel):
...
@@ -93,8 +93,8 @@ class WorkgroupReview(TimeStampedModel):
"""
"""
workgroup
=
models
.
ForeignKey
(
Workgroup
,
related_name
=
"workgroup_reviews"
)
workgroup
=
models
.
ForeignKey
(
Workgroup
,
related_name
=
"workgroup_reviews"
)
reviewer
=
models
.
CharField
(
max_length
=
255
)
# AnonymousUserId
reviewer
=
models
.
CharField
(
max_length
=
255
)
# AnonymousUserId
question
=
models
.
CharField
(
max_length
=
255
)
question
=
models
.
CharField
(
max_length
=
1024
)
answer
=
models
.
CharField
(
max_length
=
255
)
answer
=
models
.
TextField
(
)
content_id
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
content_id
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
...
@@ -121,8 +121,8 @@ class WorkgroupSubmissionReview(TimeStampedModel):
...
@@ -121,8 +121,8 @@ class WorkgroupSubmissionReview(TimeStampedModel):
"""
"""
submission
=
models
.
ForeignKey
(
WorkgroupSubmission
,
related_name
=
"reviews"
)
submission
=
models
.
ForeignKey
(
WorkgroupSubmission
,
related_name
=
"reviews"
)
reviewer
=
models
.
CharField
(
max_length
=
255
)
# AnonymousUserId
reviewer
=
models
.
CharField
(
max_length
=
255
)
# AnonymousUserId
question
=
models
.
CharField
(
max_length
=
255
)
question
=
models
.
CharField
(
max_length
=
1024
)
answer
=
models
.
CharField
(
max_length
=
255
)
answer
=
models
.
TextField
(
)
content_id
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
content_id
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
...
@@ -135,6 +135,6 @@ class WorkgroupPeerReview(TimeStampedModel):
...
@@ -135,6 +135,6 @@ class WorkgroupPeerReview(TimeStampedModel):
workgroup
=
models
.
ForeignKey
(
Workgroup
,
related_name
=
"peer_reviews"
)
workgroup
=
models
.
ForeignKey
(
Workgroup
,
related_name
=
"peer_reviews"
)
user
=
models
.
ForeignKey
(
User
,
related_name
=
"workgroup_peer_reviewees"
)
user
=
models
.
ForeignKey
(
User
,
related_name
=
"workgroup_peer_reviewees"
)
reviewer
=
models
.
CharField
(
max_length
=
255
)
# AnonymousUserId
reviewer
=
models
.
CharField
(
max_length
=
255
)
# AnonymousUserId
question
=
models
.
CharField
(
max_length
=
255
)
question
=
models
.
CharField
(
max_length
=
1024
)
answer
=
models
.
CharField
(
max_length
=
255
)
answer
=
models
.
TextField
(
)
content_id
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
content_id
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment