Exemple #1
0
 def delete(self):
     S3.delete(settings.S3_AVATAR_BUCKET, f'{self.id}.png')
     super().delete()
Exemple #2
0
    def mutate(self, info, **kwargs):
        user = info.context.user

        S3.delete(settings.S3_AVATAR_BUCKET, str(user.id))

        return RemoveAvatar()
Exemple #3
0
 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()