You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To delete a file in a non-typical storage location, I required the file ID.
The problem is that cleanup_pre_delete() was being called AFTER the FakeInstance(), which effectively wipes the id from the instance.
My solution is to move cleanup_pre_delete() before calling FakeInstance().
Not sure what other impact this has...
The text was updated successfully, but these errors were encountered:
NadavK
changed the title
FileField ID Before Delete
FileField ID in pre-delete
Dec 12, 2022
To delete a file in a non-typical storage location, I required the file ID.
The problem is that
cleanup_pre_delete()
was being called AFTER theFakeInstance()
, which effectively wipes the id from the instance.My solution is to move
cleanup_pre_delete()
before callingFakeInstance()
.Not sure what other impact this has...
The text was updated successfully, but these errors were encountered: