(cls, domain, app_id, build_id, location_id, version, active)
create a new object or just set the status of an existing one with provided
        domain, app_id, build_id, location_id and version to the status passed
        :param build_id: id of the build corresponding to the version
create a new object or just set the status of an existing one with provided
        domain, app_id, build_id, location_id and version to the status passed
        :param build_id: id of the build corresponding to the version
create a new object or just set the status of an existing one with provided domain app_id build_id location_id and version to the status passed : param build_id : id of the build corresponding to the version
def update_status(cls, domain, app_id, build_id, location_id, version, active):
        """
        create a new object or just set the status of an existing one with provided
        domain, app_id, build_id, location_id and version to the status passed
        :param build_id: id of the build corresponding to the version
        """
        try:
            release = AppReleaseByLocation.objects.get(
                domain=domain, app_id=app_id, build_id=build_id, location_id=location_id, version=version
            )
        except cls.DoesNotExist:
            release = AppReleaseByLocation(
                domain=domain, app_id=app_id, build_id=build_id, location_id=location_id, version=version
            )
        release.activate() if active else release.deactivate()
def update_status ( cls , domain , app_id , build_id , location_id , version , active ) : try : release = AppReleaseByLocation . objects . get ( domain = domain , app_id = app_id , build_id = build_id , location_id = location_id , version = version ) except cls . DoesNotExist : release = AppReleaseByLocation ( domain = domain , app_id = app_id , build_id = build_id , location_id = location_id , version = version ) release . activate ( ) if active else release . deactivate ( )