remove: bozo print
This commit is contained in:
parent
d1c75f7033
commit
2ce1356412
@ -26,7 +26,6 @@ class ProfileViewSet(viewsets.ModelViewSet):
|
|||||||
profile: ProfileModel = ProfileModel.objects.get(pk=self.request.user.pk)
|
profile: ProfileModel = ProfileModel.objects.get(pk=self.request.user.pk)
|
||||||
avatar = self.request.data.get("file", None)
|
avatar = self.request.data.get("file", None)
|
||||||
if (avatar is not None):
|
if (avatar is not None):
|
||||||
print(profile.avatar_url.name)
|
|
||||||
if (profile.avatar_url.name != "default.avif"):
|
if (profile.avatar_url.name != "default.avif"):
|
||||||
profile.avatar_url.storage.delete(profile.avatar_url.name)
|
profile.avatar_url.storage.delete(profile.avatar_url.name)
|
||||||
profile.avatar_url = avatar
|
profile.avatar_url = avatar
|
||||||
|
Loading…
Reference in New Issue
Block a user