program is not provided
This commit is contained in:
parent
d29f89758b
commit
2dd2b766a6
|
@ -82,8 +82,8 @@ class SoundFile:
|
||||||
return sound
|
return sound
|
||||||
|
|
||||||
# FIXME: sound.program as not null
|
# FIXME: sound.program as not null
|
||||||
if program is None:
|
kwargs['program'] = program or Program.get_from_path(self.path)
|
||||||
program = kwargs['program'] = Program.get_from_path(self.path)
|
|
||||||
sound, created = Sound.objects.get_or_create(file=self.sound_path, defaults=kwargs) \
|
sound, created = Sound.objects.get_or_create(file=self.sound_path, defaults=kwargs) \
|
||||||
if not sound else (sound, False)
|
if not sound else (sound, False)
|
||||||
self.sound = sound
|
self.sound = sound
|
||||||
|
|
Loading…
Reference in New Issue
Block a user