(self)
return has_restored
Restores any uploaded logos in the application.
Restores any uploaded logos in the application.
Restores any uploaded logos in the application .
def restore_logos(self):
        """
        Restores any uploaded logos in the application.
        """
        has_restored = False
        if hasattr(self, 'archived_media') and LOGO_ARCHIVE_KEY in self.archived_media:
            for slug, logo_data in list(self.archived_media[LOGO_ARCHIVE_KEY].items()):
                self.logo_refs[slug] = logo_data
                has_restored = True
                del self.archived_media[LOGO_ARCHIVE_KEY][slug]
        return has_restored
def restore_logos ( self ) : has_restored = False if hasattr ( self , 'archived_media' ) and LOGO_ARCHIVE_KEY in self . archived_media : for slug , logo_data in list ( self . archived_media [ LOGO_ARCHIVE_KEY ] . items ( ) ) : self . logo_refs [ slug ] = logo_data has_restored = True del self . archived_media [ LOGO_ARCHIVE_KEY ] [ slug ] return has_restored