summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorankitjavalkar2016-05-02 11:52:58 +0530
committerankitjavalkar2016-05-05 19:24:54 +0530
commit23b7abd3c1125e4c875e214e4f673c48c4bf4752 (patch)
treea76fccd392e054f33a3fc4bbd388c0aaa34bb40b /yaksh/forms.py
parentb40b668bcecd01b3c7f9f16b87775770ba06a33a (diff)
downloadonline_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.tar.gz
online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.tar.bz2
online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.zip
Remove commented code and cleanup
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index ddb1819..2ce2cba 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -44,17 +44,8 @@ attempts.append((-1, 'Infinite'))
days_between_attempts = ((j, j) for j in range(401))
def get_object_form(model, exclude_fields=None):
- # ctype = ContentType.objects.get(app_label="yaksh", model=model)
- # ctype = ContentType.objects.get(pk=type_id)
- # model_class = ctype.model_class()
model_class = get_model_class(model)
class _ObjectForm(forms.ModelForm):
- # def __init__(self, *args, **kwargs):
- # if "question" in kwargs:
- # question = kwargs.pop("question")
- # else:
- # question = None
- # self.fields["question"] = question
class Meta:
model = model_class
exclude = exclude_fields