Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Respect My Net
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
Respect My Net
Commits
26004a75
Commit
26004a75
authored
Apr 28, 2017
by
jc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes F401 imported but unused
parent
44bbca8a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
24 deletions
+7
-24
bt/forms.py
bt/forms.py
+1
-1
bt/multifile.py
bt/multifile.py
+1
-5
bt/search_indexes.py
bt/search_indexes.py
+1
-1
bt/sheet.py
bt/sheet.py
+0
-1
bt/templatetags/bt.py
bt/templatetags/bt.py
+1
-3
bt/views.py
bt/views.py
+3
-13
No files found.
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
Markdown
is supported
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