Skip to content

Commit

Permalink
default form value
Browse files Browse the repository at this point in the history
  • Loading branch information
codemeleon committed Oct 30, 2023
1 parent 5757582 commit 3c6b658
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions MicroBiome/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from .models import Tags


# class Upload(forms.Form):
# infile = forms.FileField()
# separator = forms.ChoiceField(
Expand Down Expand Up @@ -42,15 +41,18 @@ class Meta:
model = Tags
# fields = ("country",)
# fields = ("country", "platform", "disease", "study_design")
fields = ("tags",)
fields = ("tags", )
widgets = {
"tags": forms.TextInput(
"tags":
forms.TextInput(
attrs={ # 'data-role': 'tagsinput',
# 'class':'form-control',
"type": "text",
"placeholder": "(Malawi[country] & AMPLICON[assay]) | ~Eye[bodysite]",
}
)
"placeholder":
"(Malawi[country] & AMPLICON[assay]) | ~Eye[bodysite]",
"value":
"(Malawi[country] & AMPLICON[assay]) | ~Eye[bodysite]"
})
}
error_css_class = "error"
required_css_class = "bold"
Expand Down

0 comments on commit 3c6b658

Please sign in to comment.