Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
b1cb2ac8
Commit
b1cb2ac8
authored
Sep 19, 2017
by
Cliff Dyer
Committed by
GitHub
Sep 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #166 from open-craft/cliff/remove-course-id
Remove course_id from answer model.
parents
dcf57dd5
f7693754
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
+1
-5
problem_builder/models.py
+0
-4
setup.py
+1
-1
No files found.
problem_builder/models.py
View file @
b1cb2ac8
...
@@ -39,15 +39,11 @@ class Answer(models.Model):
...
@@ -39,15 +39,11 @@ class Answer(models.Model):
# specify the app_label here.
# specify the app_label here.
app_label
=
'problem_builder'
app_label
=
'problem_builder'
unique_together
=
(
unique_together
=
(
(
'student_id'
,
'course_id'
,
'name'
),
(
'student_id'
,
'course_key'
,
'name'
),
(
'student_id'
,
'course_key'
,
'name'
),
)
)
name
=
models
.
CharField
(
max_length
=
50
,
db_index
=
True
)
name
=
models
.
CharField
(
max_length
=
50
,
db_index
=
True
)
student_id
=
models
.
CharField
(
max_length
=
32
,
db_index
=
True
)
student_id
=
models
.
CharField
(
max_length
=
32
,
db_index
=
True
)
# course_id is deprecated; it will be removed in next release.
course_id
=
models
.
CharField
(
max_length
=
50
,
db_index
=
True
,
blank
=
True
,
null
=
True
,
default
=
None
)
# course_key is the new course_id replacement with extended max_length.
course_key
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
course_key
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
student_input
=
models
.
TextField
(
blank
=
True
,
default
=
''
)
student_input
=
models
.
TextField
(
blank
=
True
,
default
=
''
)
created_on
=
models
.
DateTimeField
(
'created on'
,
auto_now_add
=
True
)
created_on
=
models
.
DateTimeField
(
'created on'
,
auto_now_add
=
True
)
...
...
setup.py
View file @
b1cb2ac8
...
@@ -71,7 +71,7 @@ BLOCKS = [
...
@@ -71,7 +71,7 @@ BLOCKS = [
setup
(
setup
(
name
=
'xblock-problem-builder'
,
name
=
'xblock-problem-builder'
,
version
=
'2.7.
5
'
,
version
=
'2.7.
6
'
,
description
=
'XBlock - Problem Builder'
,
description
=
'XBlock - Problem Builder'
,
packages
=
find_packages
(),
packages
=
find_packages
(),
install_requires
=
[
install_requires
=
[
...
...
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