fix: file asset uploading and deleting (#496)
This commit is contained in:
parent
f615f8ac0c
commit
27b1308227
3 changed files with 2 additions and 4 deletions
|
|
@ -91,8 +91,6 @@ class UserAssetsEndpoint(BaseAPIView):
|
|||
|
||||
def delete(self, request, asset_key):
|
||||
try:
|
||||
asset_key = "user-profile" + "/" + asset_key
|
||||
print(asset_key)
|
||||
file_asset = FileAsset.objects.get(asset=asset_key, created_by=request.user)
|
||||
# Delete the file from storage
|
||||
file_asset.asset.delete(save=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue