Skip to content
Snippets Groups Projects

Resolve "Add JSON example for annotations in file upload form"

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -218,7 +218,8 @@ class DataFileServletUploadForm(forms.ModelForm):
class DataFileAnnotationForm(forms.Form):
dropzone_files = forms.CharField(required=False, widget=forms.HiddenInput)
annotations = HStoreField(required=False, label=_('Attach these annotations with the uploaded files:'), help_text=_('Pro Tip: You can also drop a tab separated value file onto this field'))
annotations = HStoreField(required=False, label=_('Attach these annotations with the uploaded files:'), help_text=_('Pro Tip: You can also drop a tab separated value file onto this field'),
widget=forms.Textarea(attrs={'placeholder':'{"key": "value"}'}))
lab = forms.ChoiceField(required=False, label=_('Attach uploaded files to this lab:'))
def __init__(self, request, *args, **kwargs):
Loading