Move real_name to UserProfile;

Delete student_id field;
Mark the problems that have submission;
Alter dispatcher to adapt the changes.
This commit is contained in:
zema1
2017-09-12 11:45:17 +08:00
parent 1e4ede6d1a
commit f55a242ec0
15 changed files with 221 additions and 113 deletions

View File

@@ -82,10 +82,7 @@ class Captcha(object):
x += font_size * random.randrange(6, 8) / 10
self.django_request.session[self.session_key] = "".join(code)
with BytesIO() as buf:
image.save(buf, "gif")
buf_str = buf.getvalue()
return buf_str
return image
def check(self, code):
"""