Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jaster
Respect My Net
Commits
26004a75
Commit
26004a75
authored
Apr 28, 2017
by
jc
Browse files
fixes F401 imported but unused
parent
44bbca8a
Changes
6
Hide whitespace changes
Inline
Side-by-side
bt/forms.py
View file @
26004a75
...
...
@@ -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
...
...
bt/multifile.py
View file @
26004a75
...
...
@@ -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
()
...
...
bt/search_indexes.py
View file @
26004a75
from
haystack
import
indexes
from
models
import
Operator
,
Violation
from
models
import
Violation
class
ViolationIndexes
(
indexes
.
SearchIndex
,
indexes
.
Indexable
):
...
...
bt/sheet.py
View file @
26004a75
...
...
@@ -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
...
...
bt/templatetags/bt.py
View file @
26004a75
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
()
...
...
bt/views.py
View file @
26004a75
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment