diff options
author | ankitjavalkar | 2015-04-20 21:42:02 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-04-26 19:46:01 +0530 |
commit | 3ffdba6e587422a0f2955879d12e0b2aeac342e1 (patch) | |
tree | 7ea9136dc4694b1d534dc2df7f1b0353ed4ee075 /testapp/exam/models.py | |
parent | cbeffec80d30fe2a9048644f5b0345f797479c92 (diff) | |
download | online_test-3ffdba6e587422a0f2955879d12e0b2aeac342e1.tar.gz online_test-3ffdba6e587422a0f2955879d12e0b2aeac342e1.tar.bz2 online_test-3ffdba6e587422a0f2955879d12e0b2aeac342e1.zip |
Code review - code refactoring as per suggestion
- Add subclasses for different languages
- Create seperate modules for different languages
- Dynamic selection of subclasses based on language used
- Add testcases
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r-- | testapp/exam/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 1e7db2b..874c81c 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -21,7 +21,7 @@ languages = ( ("python", "Python"), ("bash", "Bash"), ("C", "C Language"), - ("C++", "C++ Language"), + ("CPP", "C++ Language"), ("java", "Java Language"), ("scilab", "Scilab"), ) |