Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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
Commit
1d8b8edb
authored
6 years ago
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix template listing: show ususers templates only
parent
797acc3f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
.idea/workspace.xml
+0
-0
circle/dashboard/views/template.py
+1
-1
circle/dashboard/views/vm.py
+1
-1
No files found.
.idea/workspace.xml
View file @
1d8b8edb
This diff is collapsed.
Click to expand it.
circle/dashboard/views/template.py
View file @
1d8b8edb
...
...
@@ -268,7 +268,7 @@ class TemplateList(LoginRequiredMixin, FilterMixin, SingleTableView):
return
super
(
TemplateList
,
self
)
.
get
(
*
args
,
**
kwargs
)
def
get_queryset
(
self
):
return
InstanceTemplate
.
objects
.
all
(
)
return
InstanceTemplate
.
objects
.
filter
(
owner_id
=
self
.
request
.
user
.
id
)
class
TemplateDelete
(
DeleteViewBase
):
model
=
InstanceTemplate
...
...
This diff is collapsed.
Click to expand it.
circle/dashboard/views/vm.py
View file @
1d8b8edb
...
...
@@ -1156,7 +1156,7 @@ class VmCreate(LoginRequiredMixin, TemplateView):
if
form
is
None
:
form
=
self
.
form_class
(
user
=
request
.
user
,
template
=
template
)
else
:
templates
=
InstanceTemplate
.
objects
templates
=
InstanceTemplate
.
objects
.
filter
(
owner_id
=
self
.
request
.
user
.
id
)
images
=
openstack_api
.
glance
.
image_list_detailed
(
request
)
...
...
This diff is collapsed.
Click to expand it.
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