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