Skip to content

Commit

Permalink
Merge pull request #186 from Cal-CS-61A-Staff/submission_check
Browse files Browse the repository at this point in the history
Add submission checks and anon user key.
  • Loading branch information
moowiz committed Sep 16, 2014
2 parents 4219fd1 + f52159e commit d150b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def validate_messages(_, messages):

class Submission(Base):
"""A submission is generated each time a student runs the client."""
submitter = ndb.KeyProperty(User)
submitter = ndb.KeyProperty(User, required=True)
assignment = ndb.KeyProperty(Assignment)
messages = ndb.JsonProperty()
created = ndb.DateTimeProperty(auto_now_add=True)
Expand Down

0 comments on commit d150b37

Please sign in to comment.