Fakultas Ilmu Komputer UI

Commit 9a55bdfa authored by Fadhil's avatar 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
......@@ -28,6 +28,8 @@ class UploadMateriForm(forms.ModelForm):
if (field_name == "categories"):
field.widget.attrs["class"] = "form-control"
field.widget.attrs["placeholder"] = field.initial
field.initial = ""
self.fields['categories'].widget.attrs.update({'class' : "native"})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment