def get_child_audiobook(self):
BookMedia = apps.get_model('catalogue', 'BookMedia')
if not BookMedia.objects.filter(book__ancestor=self).exists():
return None
def get_child_audiobook(self):
BookMedia = apps.get_model('catalogue', 'BookMedia')
if not BookMedia.objects.filter(book__ancestor=self).exists():
return None