def get_success(self, obj):
    '\n        Return ``None`` if the build is not finished.\n\n        This is needed because ``default=True`` in the model field.\n        '
    if obj.finished:
        return obj.success
    return None
Return ``None`` if the build is not finished.

This is needed because ``default=True`` in the model field.
def get_success(self, obj):
    '\n        Return ``None`` if the build is not finished.\n\n        This is needed because ``default=True`` in the model field.\n        '
    if obj.finished:
        return obj.success
    return None