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
a2f07afd
Commit
a2f07afd
authored
Mar 24, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add better name to exporter
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
8f502259
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
weblate/api/views.py
weblate/api/views.py
+3
-3
No files found.
weblate/api/views.py
View file @
a2f07afd
...
...
@@ -55,7 +55,7 @@ class MultipleFieldMixin(object):
return
get_object_or_404
(
queryset
,
**
lookup
)
class
RawFile
ViewSet
(
viewsets
.
ReadOnlyModelViewSet
):
class
FileExport
ViewSet
(
viewsets
.
ReadOnlyModelViewSet
):
"""
Allows to skip content negotiation for certain requests.
"""
...
...
@@ -69,7 +69,7 @@ class RawFileViewSet(viewsets.ReadOnlyModelViewSet):
renderers
=
self
.
get_renderers
()
return
(
renderers
[
0
],
renderers
[
0
].
media_type
)
raise
Http404
(
'Not supported exporter'
)
return
super
(
RawFile
ViewSet
,
self
).
perform_content_negotiation
(
return
super
(
FileExport
ViewSet
,
self
).
perform_content_negotiation
(
request
,
force
)
...
...
@@ -108,7 +108,7 @@ class ComponentViewSet(MultipleFieldMixin, viewsets.ReadOnlyModelViewSet):
)
class
TranslationViewSet
(
MultipleFieldMixin
,
RawFile
ViewSet
):
class
TranslationViewSet
(
MultipleFieldMixin
,
FileExport
ViewSet
):
"""Translation components API.
"""
queryset
=
Translation
.
objects
.
none
()
...
...
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