def delete(self): S3.delete(settings.S3_AVATAR_BUCKET, f'{self.id}.png') super().delete()
def mutate(self, info, **kwargs): user = info.context.user S3.delete(settings.S3_AVATAR_BUCKET, str(user.id)) return RemoveAvatar()
def avatar_download_url(self): return S3.get_download_url( settings.S3_AVATAR_BUCKET, f'{self.id}.png', )
def avatar_upload_info(self): return S3.get_upload_dict( settings.S3_AVATAR_BUCKET, f'{self.id}.png', )
def delete(self): S3.delete(settings.S3_RESUME_BUCKET, f'{self.id}.pdf') S3.delete(settings.S3_RESUME_BUCKET, f'{self.id}.jpg') super().delete()
def thumbnail_upload_info(self): return S3.get_upload_dict( settings.S3_RESUME_BUCKET, f'{self.id}.jpg', )
def thumbnail_download_url(self): return S3.get_download_url( settings.S3_RESUME_BUCKET, f'{self.id}.jpg', )
def upload_info(self): return S3.get_upload_dict( settings.S3_RESUME_BUCKET, f'{self.id}.pdf', )
def download_url(self): return S3.get_download_url( settings.S3_RESUME_BUCKET, f'{self.id}.pdf', )