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
Nikos Pappas
National Registry
Commits
d73acef4
Commit
d73acef4
authored
Jan 12, 2022
by
Nikos Pappas
Browse files
4rd
parent
9da543ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
evidences/views.py
View file @
d73acef4
...
...
@@ -2,7 +2,7 @@ from django.contrib import admin
from
rest_framework
import
viewsets
from
rest_framework
import
status
from
rest_framework.response
import
Response
from
rest_framework.decorators
import
api_view
from
rest_framework.decorators
import
api_view
,
schema
from
rest_framework.permissions
import
IsAuthenticatedOrReadOnly
,
DjangoModelPermissionsOrAnonReadOnly
# App specific imports
...
...
@@ -23,7 +23,8 @@ class EvidenceViewSet(viewsets.ModelViewSet):
permission_classes
=
[
IsAuthenticatedOrReadOnly
]
# Only allow authenticated users to POST
@
api_view
((
'GET'
,))
@
api_view
([
'GET'
])
@
schema
(
None
)
def
get_evidences_from_emd
(
request
):
lang
=
request
.
GET
.
get
(
'lang'
,
'gr'
)
# set language for emd
...
...
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