check section playlist

This commit is contained in:
bkfox
2016-06-08 00:48:10 +02:00
parent 83e425349b
commit 13bf57b401
6 changed files with 7 additions and 6 deletions

View File

@ -132,7 +132,7 @@ class DiffusionAdmin(admin.ModelAdmin):
We want rerun to redirect to the given object.
"""
obj = super().get_object(*args, **kwargs)
if obj.initial:
if obj and obj.initial:
obj = obj.initial
return obj