only yield actual users
This commit is contained in:
parent
ca462422ba
commit
582597b7b8
1 changed files with 2 additions and 1 deletions
|
@ -139,7 +139,8 @@ class Presentation(models.Model):
|
|||
def speakers(self):
|
||||
yield self.speaker
|
||||
for speaker in self.additional_speakers.all():
|
||||
yield speaker
|
||||
if speaker.user:
|
||||
yield speaker
|
||||
|
||||
def __unicode__(self):
|
||||
return "#%s %s (%s)" % (self.number, self.title, self.speaker)
|
||||
|
|
Loading…
Reference in a new issue