Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
799b95f8
Commit
799b95f8
authored
Jan 21, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from edx/model_limits
Adjust types and limits for common_grading/models.py
parents
c138b04f
61581107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
common_grading/models.py
+4
-4
No files found.
common_grading/models.py
View file @
799b95f8
from
django.db
import
models
MAX_LENGTH
=
1028
ESSAY_BODY_MAX_LENGTH
=
8192
MAX_LENGTH
=
255
ESSAY_BODY_MAX_LENGTH
=
10000
GRADING_TYPES
=
(
(
'PE'
,
'Peer Assessment'
),
)
...
...
@@ -11,7 +11,7 @@ class Submission(models.Model):
student_id
=
models
.
CharField
(
max_length
=
MAX_LENGTH
,
db_index
=
True
)
location_id
=
models
.
CharField
(
max_length
=
MAX_LENGTH
,
default
=
""
)
course_id
=
models
.
CharField
(
max_length
=
MAX_LENGTH
,
default
=
""
)
essay_body
=
models
.
Char
Field
(
max_length
=
ESSAY_BODY_MAX_LENGTH
,
default
=
""
)
essay_body
=
models
.
Text
Field
(
max_length
=
ESSAY_BODY_MAX_LENGTH
,
default
=
""
)
preferred_grading
=
models
.
CharField
(
max_length
=
2
,
choices
=
GRADING_TYPES
)
submitted_date
=
models
.
DateTimeField
()
...
...
@@ -28,5 +28,5 @@ class Scoring(models.Model):
class
Feedback
(
models
.
Model
):
text
=
models
.
Char
Field
(
max_length
=
MAX_LENGTH
,
default
=
""
)
text
=
models
.
Text
Field
(
max_length
=
MAX_LENGTH
,
default
=
""
)
score
=
models
.
ForeignKey
(
Scoring
)
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