Add confirmation/validation/convocation views

This commit is contained in:
Claude Paroz 2018-02-02 09:55:09 +01:00
parent 5a2a5d769f
commit e62284d55c
8 changed files with 312 additions and 159 deletions

View file

@ -139,6 +139,13 @@ class Candidate(models.Model):
else:
return ''
@property
def section_option(self):
if not self.option:
return self.get_section_display()
else:
return '{0}, option «{1}»'.format(self.get_section_display(), self.get_option_display())
def get_ok(self, fieldname):
return 'OK' if getattr(self, fieldname) is True else 'NON'