Add confirmation/validation/convocation views
This commit is contained in:
parent
5a2a5d769f
commit
e62284d55c
8 changed files with 312 additions and 159 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue