Add Candidate model
This commit is contained in:
parent
ab5b287ce9
commit
54a1d34466
8 changed files with 430 additions and 16 deletions
|
|
@ -3,7 +3,7 @@ from django.conf import settings
|
|||
|
||||
from tabimport import FileFactory, UnsupportedFileFormat
|
||||
|
||||
from .models import Section, Period
|
||||
from .models import Section, Period, Candidate
|
||||
|
||||
|
||||
class StudentImportForm(forms.Form):
|
||||
|
|
@ -34,3 +34,14 @@ class PeriodForm(forms.Form):
|
|||
|
||||
class UploadHPFileForm(forms.Form):
|
||||
upload = forms.FileField(label='Fichier HyperPlanning')
|
||||
|
||||
|
||||
class CandidateAdminForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Candidate
|
||||
widgets = {
|
||||
'comment': forms.Textarea(attrs={'cols': 100, 'rows': 1}),
|
||||
'pcode': forms.TextInput(attrs={'size': 10 }),
|
||||
}
|
||||
fields = ('__all__')
|
||||
Loading…
Add table
Add a link
Reference in a new issue