Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-submissions
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-submissions
Commits
50e621d2
Commit
50e621d2
authored
Oct 21, 2015
by
muhammad-ammar
Committed by
Ned Batchelder
Nov 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove RemovedInDjango19Warning warnings
parent
589d2cf3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
setup.py
+1
-1
submissions/models.py
+6
-0
No files found.
setup.py
View file @
50e621d2
...
...
@@ -33,7 +33,7 @@ def load_requirements(*requirements_paths):
setup
(
name
=
'edx-submissions'
,
version
=
'0.1.
0
'
,
version
=
'0.1.
1
'
,
author
=
'edX'
,
description
=
'An API for creating submissions and scores.'
,
url
=
'http://github.com/edx/edx-submissions.git'
,
...
...
submissions/models.py
View file @
50e621d2
...
...
@@ -65,6 +65,7 @@ class StudentItem(models.Model):
return
u"({0.student_id}, {0.course_id}, {0.item_type}, {0.item_id})"
.
format
(
self
)
class
Meta
:
app_label
=
"submissions"
unique_together
=
(
# For integrity reasons, and looking up all of a student's items
(
"course_id"
,
"student_id"
,
"item_id"
),
...
...
@@ -120,6 +121,7 @@ class Submission(models.Model):
return
u"Submission {}"
.
format
(
self
.
uuid
)
class
Meta
:
app_label
=
"submissions"
ordering
=
[
"-submitted_at"
,
"-id"
]
...
...
@@ -140,6 +142,9 @@ class Score(models.Model):
# Flag to indicate that this score should reset the current "highest" score
reset
=
models
.
BooleanField
(
default
=
False
)
class
Meta
:
app_label
=
"submissions"
@property
def
submission_uuid
(
self
):
"""
...
...
@@ -233,6 +238,7 @@ class ScoreSummary(models.Model):
latest
=
models
.
ForeignKey
(
Score
,
related_name
=
"+"
)
class
Meta
:
app_label
=
"submissions"
verbose_name_plural
=
"Score Summaries"
@receiver
(
post_save
,
sender
=
Score
)
...
...
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