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
395f2cfe
Commit
395f2cfe
authored
Mar 23, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various coding style fixes
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
15f56195
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
3 deletions
+2
-3
weblate/api/routers.py
weblate/api/routers.py
+0
-1
weblate/api/serializers.py
weblate/api/serializers.py
+1
-0
weblate/api/urls.py
weblate/api/urls.py
+0
-1
weblate/api/views.py
weblate/api/views.py
+1
-1
No files found.
weblate/api/routers.py
View file @
395f2cfe
...
...
@@ -56,4 +56,3 @@ class WeblateRouter(routers.DefaultRouter):
)
)
return
'/'
.
join
(
result
)
weblate/api/serializers.py
View file @
395f2cfe
...
...
@@ -25,6 +25,7 @@ from weblate.lang.models import Language
class
MultiFieldHyperlinkedIdentityField
(
serializers
.
HyperlinkedIdentityField
):
# pylint: disable=W0622
def
get_url
(
self
,
obj
,
view_name
,
request
,
format
):
"""
Given an object, return the URL that hyperlinks to the object.
...
...
weblate/api/urls.py
View file @
395f2cfe
...
...
@@ -21,7 +21,6 @@
from
__future__
import
unicode_literals
from
django.conf.urls
import
url
,
include
from
rest_framework
import
routers
from
weblate.api.views
import
(
ProjectViewSet
,
ComponentViewSet
,
TranslationViewSet
,
LanguageViewSet
,
...
...
weblate/api/views.py
View file @
395f2cfe
...
...
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from
django.shortcuts
import
render
,
get_object_or_404
from
django.shortcuts
import
get_object_or_404
from
rest_framework
import
viewsets
...
...
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