Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
DIGIPUS
Commits
9a55bdfa
Commit
9a55bdfa
authored
Oct 30, 2020
by
Fadhil
Browse files
Set value into place holder at unggah materi form
parent
1570fba8
Pipeline
#60015
passed with stages
in 27 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/forms.py
View file @
9a55bdfa
...
...
@@ -28,6 +28,8 @@ class UploadMateriForm(forms.ModelForm):
if
(
field_name
==
"categories"
):
continue
field
.
widget
.
attrs
[
"class"
]
=
"form-control"
field
.
widget
.
attrs
[
"placeholder"
]
=
field
.
initial
field
.
initial
=
""
self
.
fields
[
'categories'
].
widget
.
attrs
.
update
({
'class'
:
"native"
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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