diff options
author | adityacp | 2017-11-22 12:02:49 +0530 |
---|---|---|
committer | adityacp | 2017-11-22 12:02:49 +0530 |
commit | acce9174639224234325c007f30d5679712e4c2c (patch) | |
tree | ea3e8a7e83b9964f9c289f63a7f54ca1243fdfe7 /yaksh/forms.py | |
parent | 8e5354fb2fdab96780bfd147ba5b1724eebd673b (diff) | |
download | online_test-acce9174639224234325c007f30d5679712e4c2c.tar.gz online_test-acce9174639224234325c007f30d5679712e4c2c.tar.bz2 online_test-acce9174639224234325c007f30d5679712e4c2c.zip |
Change forms.py, models.py, views.py, templates, templatetags
- Add start_time, end_time enrollement in course form
- Change get_quiz_details in course model
- Add validation to check if course is active and not expired
- Template changes for cleaner dashboard
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 25eb2c5..52e6a12 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -272,7 +272,8 @@ class CourseForm(forms.ModelForm): class Meta: model = Course - fields = ['name', 'enrollment', 'active', 'code', 'instructions'] + fields = ['name', 'enrollment', 'active', 'code', 'instructions', + 'start_enroll_time', 'end_enroll_time'] class ProfileForm(forms.ModelForm): |