Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
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
d09d309b
authored
Mar 20, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request: fix resources request form
parent
9cf54290
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
circle/request/forms.py
+3
-1
circle/request/views.py
+1
-0
No files found.
circle/request/forms.py
View file @
d09d309b
...
...
@@ -86,5 +86,7 @@ class LeaseRequestForm(InitialFromFileMixin, Form):
initial_template
=
"request/initials/lease.html"
class
ResourceRequestForm
(
VmResourcesForm
):
class
ResourceRequestForm
(
InitialFromFileMixin
,
VmResourcesForm
):
message
=
CharField
(
widget
=
forms
.
Textarea
)
initial_template
=
"request/initials/resources.html"
circle/request/views.py
View file @
d09d309b
...
...
@@ -227,6 +227,7 @@ class ResourceRequestView(VmRequestMixin, FormView):
def
get_form_kwargs
(
self
):
kwargs
=
super
(
ResourceRequestView
,
self
)
.
get_form_kwargs
()
kwargs
[
'can_edit'
]
=
True
kwargs
[
'instance'
]
=
self
.
get_vm
()
return
kwargs
def
get_initial
(
self
):
...
...
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