remove: bozo print

This commit is contained in:
starnakin 2023-12-06 15:33:40 +01:00
parent d1c75f7033
commit 2ce1356412

View File

@ -26,7 +26,6 @@ class ProfileViewSet(viewsets.ModelViewSet):
profile: ProfileModel = ProfileModel.objects.get(pk=self.request.user.pk)
avatar = self.request.data.get("file", None)
if (avatar is not None):
print(profile.avatar_url.name)
if (profile.avatar_url.name != "default.avif"):
profile.avatar_url.storage.delete(profile.avatar_url.name)
profile.avatar_url = avatar