Created
February 4, 2014 12:09
-
-
Save pilgwon/8802520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" candidate 1 """ | |
class Voca(object) : | |
def get(self, book_id) : | |
return Voca.objects.filter(book.id=book_id) | |
class Quiz (object) : | |
@classmethod | |
def logout(cls, request) : | |
logout(request) | |
return HttpResponseRedirect('/quiz/main/') | |
@classmethod | |
def add_voca(cls, request) : | |
variables = Context({'user':request.user, 'voca':VocaForm}) | |
return render_to_response( | |
'add_voca.html', variables, context_instance=RequestContext(request)) | |
""" candidate 2 """ | |
class Member(object) : | |
@classmethod | |
def logout(cls, request) : | |
logout(request) | |
return HttpResponseRedirect('/quiz/main/') | |
class Voca(object) : | |
@classmethod | |
def add_voca(cls, request) : | |
variables = Context({'user':request.user, 'voca':VocaForm}) | |
return render_to_response( | |
'add_voca.html', variables, context_instance=RequestContext(request)) | |
def get(self, book_id) : | |
return Voca.objects.filter(book.id=book_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment