Add Candidate model

This commit is contained in:
alazo 2017-10-16 11:05:22 +02:00
parent ab5b287ce9
commit 54a1d34466
8 changed files with 430 additions and 16 deletions

View file

@ -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__')