1👍
I moved the logic to the delete()
function of the Wallet
model instead of using the pre_delete()
signal, and it’s fixed now.
0👍
Maybe it cant find default wallet so it tries go get the first one which is the wallet you want to delete (because it’s before delete so it still exist).
Try to exclude pk=instance.pk
in your default_wallet
query.
- [Answered ]-How do I get something like repeat customers in Django
- [Answered ]-Skipping a test based on the pass of a previous test
- [Answered ]-Output the values of the variables of django rest framework
- [Answered ]-Django: blocktrans entry is not being translated
- [Answered ]-Cannot Configure (Error While) Django setting in nginx
Source:stackexchange.com