def METHOD_NAME(self, slug):
    try:
        conference = Conference.objects.get(slug=slug)
        return conference
    except Conference.DoesNotExist:
        raise CommandError('Conference "{}" does not exist'.format(slug))