Changeset - 5948aacd93f4
[Not reviewed]
0 1 0
Hiroshi Miura - 9 years ago 2015-06-17 02:43:02
miurahr@linux.com
Internatinalize status label - undecided

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/models.py
Show inline comments
...
 
@@ -121,25 +121,25 @@ class ProposalBase(models.Model):
 
    def speaker_email(self):
 
        return self.speaker.email
 

	
 
    @property
 
    def number(self):
 
        return str(self.pk).zfill(3)
 

	
 
    @property
 
    def status(self):
 
        try:
 
            return self.result.status
 
        except ObjectDoesNotExist:
 
            return 'undecided'
 
            return _('Undecided')
 

	
 
    def speakers(self):
 
        yield self.speaker
 
        speakers = self.additional_speakers.exclude(
 
            additionalspeaker__status=AdditionalSpeaker.SPEAKING_STATUS_DECLINED)
 
        for speaker in speakers:
 
            yield speaker
 

	
 
    def notification_email_context(self):
 
        return {
 
            "title": self.title,
 
            "speaker": self.speaker.name,
0 comments (0 inline, 0 general)