Skip to content

Commit

Permalink
Display proposal result status in proposal admin change lists
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
miurahr committed Jun 17, 2015
1 parent 7ff4c0b commit 464d85b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions symposion/proposals/models.py
Expand Up @@ -8,6 +8,7 @@
from django.utils.timezone import now

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

import reversion

Expand Down Expand Up @@ -124,6 +125,13 @@ def speaker_email(self):
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(
Expand Down

0 comments on commit 464d85b

Please sign in to comment.