Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
1315d487
authored
Apr 06, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only authenticated users see the templates
parent
73c7887d
Pipeline
#1047
failed with stage
in 1 minute 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
recircle/template/views.py
+2
-0
No files found.
recircle/template/views.py
View file @
1315d487
...
@@ -4,11 +4,13 @@ from rest_framework.viewsets import ModelViewSet
...
@@ -4,11 +4,13 @@ from rest_framework.viewsets import ModelViewSet
from
template.serializers
import
ImageTemplateModelSerializer
,
ImageTemplateListItemSerializer
from
template.serializers
import
ImageTemplateModelSerializer
,
ImageTemplateListItemSerializer
from
template.models
import
ImageTemplate
from
template.models
import
ImageTemplate
from
django.db.models
import
Q
from
django.db.models
import
Q
from
rest_framework.permissions
import
IsAuthenticated
class
ImageTemplateViewSet
(
ModelViewSet
):
class
ImageTemplateViewSet
(
ModelViewSet
):
serializer_class
=
ImageTemplateModelSerializer
serializer_class
=
ImageTemplateModelSerializer
queryset
=
ImageTemplate
.
objects
.
all
()
queryset
=
ImageTemplate
.
objects
.
all
()
permission_classes
=
[
IsAuthenticated
]
def
create
(
self
,
request
):
def
create
(
self
,
request
):
# TODO: Check the permissions to create template and using the flavors and leases
# TODO: Check the permissions to create template and using the flavors and leases
...
...
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