summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2018-05-24 12:37:54 +0530
committeradityacp2018-06-07 14:50:47 +0530
commit0adb0d3b79980544bb5a724ce3b106dbd8e01c9c (patch)
tree624a5947dc960a0283b606c244aeb470e94c3a57 /yaksh/views.py
parent97b657edc2a323f832c81f0e34ce5761bd21f7e9 (diff)
downloadonline_test-0adb0d3b79980544bb5a724ce3b106dbd8e01c9c.tar.gz
online_test-0adb0d3b79980544bb5a724ce3b106dbd8e01c9c.tar.bz2
online_test-0adb0d3b79980544bb5a724ce3b106dbd8e01c9c.zip
Further pep8 changes
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 4ea387a..8983070 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1,30 +1,20 @@
-import random
-import string
import os
-from datetime import datetime, timedelta
-import collections
import csv
from django.http import HttpResponse, JsonResponse
-from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.shortcuts import render, get_object_or_404, redirect
-from django.template import RequestContext, Context, Template
-from django.template.loader import get_template, render_to_string
+from django.template import Context, Template
from django.http import Http404
-from django.db.models import Sum, Max, Q, F
+from django.db.models import Max, Q, F
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import Group
from django.forms.models import inlineformset_factory
from django.utils import timezone
-from django.core.validators import URLValidator
from django.core.exceptions import (
- MultipleObjectsReturned, ObjectDoesNotExist, ValidationError
+ MultipleObjectsReturned, ObjectDoesNotExist
)
-from django.conf import settings
-import pytz
from taggit.models import Tag
-from itertools import chain
import json
import six
from textwrap import dedent
@@ -89,6 +79,7 @@ def add_to_group(users):
if not is_moderator(user):
user.groups.add(group)
+
CSV_FIELDS = ['name', 'username', 'roll_number', 'institute', 'department',
'questions', 'marks_obtained', 'out_of', 'percentage', 'status']