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
bc3a6d38
Commit
bc3a6d38
authored
Jan 09, 2012
by
Ernie Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug introduced in fdf0d141844d where MODULE_TYPES defined after it was used
parent
dc44eac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
courseware/models.py
+4
-4
No files found.
courseware/models.py
View file @
bc3a6d38
...
@@ -41,6 +41,10 @@ from django.contrib.auth.models import User
...
@@ -41,6 +41,10 @@ from django.contrib.auth.models import User
class
StudentModule
(
models
.
Model
):
class
StudentModule
(
models
.
Model
):
# For a homework problem, contains a JSON
# For a homework problem, contains a JSON
# object consisting of state
# object consisting of state
MODULE_TYPES
=
((
'problem'
,
'problem'
),
(
'video'
,
'video'
),
(
'html'
,
'html'
),
)
module_type
=
models
.
CharField
(
max_length
=
32
,
choices
=
MODULE_TYPES
,
default
=
'problem'
)
module_type
=
models
.
CharField
(
max_length
=
32
,
choices
=
MODULE_TYPES
,
default
=
'problem'
)
module_id
=
models
.
CharField
(
max_length
=
255
)
# Filename for homeworks, etc.
module_id
=
models
.
CharField
(
max_length
=
255
)
# Filename for homeworks, etc.
student
=
models
.
ForeignKey
(
User
)
student
=
models
.
ForeignKey
(
User
)
...
@@ -50,10 +54,6 @@ class StudentModule(models.Model):
...
@@ -50,10 +54,6 @@ class StudentModule(models.Model):
state
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
state
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
grade
=
models
.
FloatField
(
null
=
True
,
blank
=
True
)
grade
=
models
.
FloatField
(
null
=
True
,
blank
=
True
)
MODULE_TYPES
=
((
'problem'
,
'problem'
),
(
'video'
,
'video'
),
(
'html'
,
'html'
),
)
created
=
models
.
DateTimeField
(
auto_now_add
=
True
)
created
=
models
.
DateTimeField
(
auto_now_add
=
True
)
modified
=
models
.
DateTimeField
(
auto_now
=
True
)
modified
=
models
.
DateTimeField
(
auto_now
=
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