12 lines
376 B
Python
12 lines
376 B
Python
from django import forms
|
|
from .models import Submission
|
|
|
|
class CodeForm(forms.Form):
|
|
code = forms.CharField(max_length=14,
|
|
widget=forms.TextInput(attrs={'placeholder': 'xxx-xxx-xxx'}))
|
|
passphrase = forms.CharField(max_length=32)
|
|
|
|
class SubmissionForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Submission
|
|
fields = ['name', 'instrument', 'notes'] |