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
1248bd84
authored
Apr 15, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some errors in creating template
parent
61658071
Pipeline
#1065
failed with stage
in 1 minute 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
recircle/recircle/settings/base.py
+2
-2
recircle/template/views.py
+3
-3
No files found.
recircle/recircle/settings/base.py
View file @
1248bd84
...
...
@@ -143,8 +143,8 @@ STATIC_URL = "/static/"
# VM ACCESS PROTOCOLS
VM_ACCESS_PROTOCOLS
=
{
"
rdp
"
:
[
"Remote Desktop Protocol"
,
3389
,
"tcp"
],
"
ssh
"
:
[
"Secure Shell"
,
22
,
"tcp"
],
"
RDP
"
:
[
"Remote Desktop Protocol"
,
3389
,
"tcp"
],
"
SSH
"
:
[
"Secure Shell"
,
22
,
"tcp"
],
}
# LEASE TYPES
...
...
recircle/template/views.py
View file @
1248bd84
...
...
@@ -17,11 +17,11 @@ class ImageTemplateViewSet(ModelViewSet):
serializer
=
ImageTemplateModelSerializer
(
data
=
request
.
data
)
serializer
.
is_valid
(
raise_exception
=
True
)
data
=
serializer
.
validated_data
new_template
=
ImageTemplate
.
create
(
new_template
=
ImageTemplate
(
name
=
data
[
"name"
],
description
=
data
[
"description"
],
access_protocol
=
data
[
"access"
],
system_type
=
data
[
"system"
],
access_protocol
=
data
[
"access
_protocol
"
],
system_type
=
data
[
"system
_type
"
],
distro
=
data
[
"distro"
],
created_by
=
request
.
user
,
image
=
data
[
"image"
],
...
...
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