Changeset - 464d85b36a64
[Not reviewed]
0 1 0
Hiroshi Miura - 9 years ago 2015-06-17 02:43:02
miurahr@linux.com
Display proposal result status in proposal admin change lists

feedback from pycon development

commit 3401cdd8253d86e166d980a1d1eb5ba2de01932d
Author: Dan Poirier <dpoirier@caktusgroup.com>
Date: Thu Jun 6 15:10:57 2013 -0400

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
1 file changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/models.py
Show inline comments
...
 
@@ -8,6 +8,7 @@ from django.utils.translation import ugettext_lazy as _
 
from django.utils.timezone import now
 

	
 
from django.contrib.auth.models import User
 
from django.core.exceptions import ObjectDoesNotExist
 

	
 
import reversion
 

	
...
 
@@ -124,6 +125,13 @@ class ProposalBase(models.Model):
 
    def number(self):
 
        return str(self.pk).zfill(3)
 

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

	
 
    def speakers(self):
 
        yield self.speaker
 
        speakers = self.additional_speakers.exclude(
0 comments (0 inline, 0 general)