(self, timezone)
return data
returns minimum possible data that could be used to list a Build on releases page on HQ

        :param timezone: timezone expected for timestamps in result
        :return: data dict
returns minimum possible data that could be used to list a Build on releases page on HQ
returns minimum possible data that could be used to list a Build on releases page on HQ
def releases_list_json(self, timezone):
        """
        returns minimum possible data that could be used to list a Build on releases page on HQ

        :param timezone: timezone expected for timestamps in result
        :return: data dict
        """
        data = super(SavedAppBuild, self).to_json().copy()
        # ignore details that are not used
        for key in ('modules', 'user_registration', 'external_blobs',
                    '_attachments', 'profile', 'translations',
                    'description', 'short_description', 'multimedia_map', 'media_language_map'):
            data.pop(key, None)
        built_on_user_time = ServerTime(self.built_on).user_time(timezone)
        menu_item_label = self.built_with.get_menu_item_label()
        data.update({
            'id': self.id,
            'built_on_date': built_on_user_time.ui_string(USER_DATE_FORMAT),
            'built_on_time': built_on_user_time.ui_string(USER_TIME_FORMAT),
            'menu_item_label': menu_item_label,
            'jar_path': self.get_jar_path(),
            'short_name': self.short_name,
            'enable_offline_install': self.enable_offline_install,
            'include_media': not is_remote_app(self),
            'j2me_enabled': menu_item_label in CommCareBuildConfig.j2me_enabled_config_labels(),
            'commcare_flavor': (
                self.commcare_flavor
                if toggles.TARGET_COMMCARE_FLAVOR.enabled(self.domain) else None
            ),
        })
        comment_from = data['comment_from']
        if comment_from:
            data['comment_user_name'] = get_display_name_for_user_id(
                self.domain, comment_from, default=comment_from)

        return data
def releases_list_json ( self , timezone ) : data = super ( SavedAppBuild , self ) . to_json ( ) . copy ( ) # ignore details that are not used for key in ( 'modules' , 'user_registration' , 'external_blobs' , '_attachments' , 'profile' , 'translations' , 'description' , 'short_description' , 'multimedia_map' , 'media_language_map' ) : data . pop ( key , None ) built_on_user_time = ServerTime ( self . built_on ) . user_time ( timezone ) menu_item_label = self . built_with . get_menu_item_label ( ) data . update ( { 'id' : self . id , 'built_on_date' : built_on_user_time . ui_string ( USER_DATE_FORMAT ) , 'built_on_time' : built_on_user_time . ui_string ( USER_TIME_FORMAT ) , 'menu_item_label' : menu_item_label , 'jar_path' : self . get_jar_path ( ) , 'short_name' : self . short_name , 'enable_offline_install' : self . enable_offline_install , 'include_media' : not is_remote_app ( self ) , 'j2me_enabled' : menu_item_label in CommCareBuildConfig . j2me_enabled_config_labels ( ) , 'commcare_flavor' : ( self . commcare_flavor if toggles . TARGET_COMMCARE_FLAVOR . enabled ( self . domain ) else None ) , } ) comment_from = data [ 'comment_from' ] if comment_from : data [ 'comment_user_name' ] = get_display_name_for_user_id ( self . domain , comment_from , default = comment_from ) return data