fix error in streamer and on_air

This commit is contained in:
bkfox
2017-07-02 18:09:40 +02:00
parent 013a0894ab
commit 08cb8e71bb
5 changed files with 108 additions and 52 deletions

View File

@ -185,7 +185,7 @@ def diffusion_post_saved(sender, instance, created, *args, **kwargs):
page.save()
return
if instance.page:
if hasattr(instance, 'page'):
return
page = models.DiffusionPage.from_diffusion(