Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
e95f72e3
Commit
e95f72e3
authored
Aug 12, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variables and imports
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
5c34a0a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
weblate/trans/tests/test_acl.py
weblate/trans/tests/test_acl.py
+3
-3
weblate/trans/views/acl.py
weblate/trans/views/acl.py
+0
-2
No files found.
weblate/trans/tests/test_acl.py
View file @
e95f72e3
...
...
@@ -113,7 +113,7 @@ class ACLViewTest(ViewTestCase):
"""Adding and removing owner from the ACL project.
"""
self
.
add_user
()
response
=
self
.
client
.
post
(
self
.
client
.
post
(
reverse
(
'make-owner'
,
kwargs
=
self
.
kw_project
),
{
'name'
:
self
.
second_user
.
username
}
)
...
...
@@ -122,7 +122,7 @@ class ACLViewTest(ViewTestCase):
username
=
self
.
second_user
.
username
).
exists
()
)
response
=
self
.
client
.
post
(
self
.
client
.
post
(
reverse
(
'revoke-owner'
,
kwargs
=
self
.
kw_project
),
{
'name'
:
self
.
second_user
.
username
}
)
...
...
@@ -137,7 +137,7 @@ class ACLViewTest(ViewTestCase):
"""Adding and deleting owner from the ACL project.
"""
self
.
add_user
()
response
=
self
.
client
.
post
(
self
.
client
.
post
(
reverse
(
'make-owner'
,
kwargs
=
self
.
kw_project
),
{
'name'
:
self
.
second_user
.
username
}
)
...
...
weblate/trans/views/acl.py
View file @
e95f72e3
...
...
@@ -20,8 +20,6 @@
from
django.utils.translation
import
ugettext
as
_
from
django.contrib.auth.decorators
import
login_required
from
django.db.models
import
Q
from
django.contrib.auth.models
import
User
from
django.contrib
import
messages
from
django.views.decorators.http
import
require_POST
from
django.core.exceptions
import
PermissionDenied
...
...
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