Commit 26004a75 authored by jc's avatar jc

fixes F401 imported but unused

parent 44bbca8a
......@@ -3,7 +3,7 @@ from django.conf import settings
from django.utils.translation import ugettext as _
from haystack.forms import SearchForm
from haystack.query import SearchQuerySet
from bt.models import Violation, COUNTRIES, RESOURCES, TYPES, MEDIA
from bt.models import COUNTRIES, RESOURCES, TYPES, MEDIA
from bt.multifile import MultiFileField
from operator import itemgetter
from captcha.fields import CaptchaField
......
......@@ -5,14 +5,10 @@ Created by Edward Dale (www.scompt.com)
Released into the Public Domain
"""
from django.utils.encoding import force_unicode
from django.utils.datastructures import MultiValueDict, MergeDict
from django.utils.translation import ugettext
from django.forms.fields import Field, EMPTY_VALUES
from django.core.files.uploadedfile import UploadedFile
from django.forms.widgets import Input, FILE_INPUT_CONTRADICTION
from django.forms.util import ErrorList, ValidationError, flatatt
from django.utils.safestring import mark_safe
from django.forms.util import ValidationError
FILE_INPUT_EMPTY_VALUE = object()
......
from haystack import indexes
from models import Operator, Violation
from models import Violation
class ViolationIndexes(indexes.SearchIndex, indexes.Indexable):
......
......@@ -2,7 +2,6 @@
import os
os.environ['DJANGO_SETTINGS_MODULE'] = "nnmon.settings"
from django.conf import settings
from bt.models import Violation
from django.db.models import Count
......
from django.template import Library, Variable
from django.template import Library
from django.conf import settings
from django import template
import random
from ..models import COUNTRIES, STATUS, TYPES, MEDIA
register = Library()
......
from forms import AddViolation, SearchViolation
from django.views.generic import ListView, FormView, DetailView
from django.views.generic.list import MultipleObjectMixin
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import render_to_response, get_object_or_404, redirect, render
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404, redirect
from django.template import RequestContext, loader, Context
from django.core.files import File
from django.core.servers.basehttp import FileWrapper
from django.core import serializers
from django.conf import settings
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.core.exceptions import ObjectDoesNotExist
from django.core.mail import send_mail
from django.contrib import messages
from django.contrib.auth.models import User
......@@ -17,19 +12,14 @@ from django.utils.translation import ugettext_lazy as _
from django.db.models import Count
from haystack.generic_views import SearchView
from haystack.query import SearchQuerySet
from models import Violation, Attachment, Comment, Confirmation, COUNTRIES, STATUS, Operator, FeaturedCase
from tempfile import mkstemp
from models import Violation, Attachment, Comment, Confirmation, Operator, FeaturedCase
from datetime import datetime
import hashlib
import os
import re
import json
from random import randint
from email.mime.text import MIMEText
from email.header import Header
from urlparse import urljoin
from BeautifulSoup import BeautifulSoup, Comment as BComment
from operator import itemgetter
from itertools import groupby
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment