From 7574f74386644a33c608174e3cd14f9f57b928ee Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 12 Jan 2018 14:28:02 +0100 Subject: [PATCH] Set Candidate.deposite_date non nullable --- .../migrations/0002_deposit_date_non_null.py | 16 ++++++++++++++++ candidats/models.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 candidats/migrations/0002_deposit_date_non_null.py diff --git a/candidats/migrations/0002_deposit_date_non_null.py b/candidats/migrations/0002_deposit_date_non_null.py new file mode 100644 index 0000000..1e867ea --- /dev/null +++ b/candidats/migrations/0002_deposit_date_non_null.py @@ -0,0 +1,16 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('candidats', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='candidate', + name='deposite_date', + field=models.DateField(verbose_name='Date dépôt dossier'), + ), + ] diff --git a/candidats/models.py b/candidats/models.py index fcbf7ab..622a63e 100644 --- a/candidats/models.py +++ b/candidats/models.py @@ -73,7 +73,7 @@ class Candidate(models.Model): proc_admin_ext = models.BooleanField("Insc. autre école", default=False) work_certificate = models.BooleanField("Certif. de travail", default=False) marks_certificate = models.BooleanField("Bull. notes", default=False) - deposite_date = models.DateField('Date dépôt dossier', blank=True, null=True) + deposite_date = models.DateField('Date dépôt dossier') interview_date = models.DateTimeField('Date entretien prof.', blank=True, null=True) interview_room = models.CharField("Salle d'entretien prof.", max_length=50, blank=True) examination_result = models.PositiveSmallIntegerField('Points examen', blank=True, null=True)