Q: Why the platform create a new wallet? enter code here
@login_required
def wallet_new(request):
wallets = Wallet.objects.all()
if request.method == "POST":
    form = WalletForm(request.POST)
    if form.is_valid():
        new_wallet = form.save(commit=False)
        new_wallet.profile = request.user
        new_wallet.save()
        for wallet in wallets:
            if new_wallet.profile == wallet.profile:
                    new_wallet.delete()
                    return render(request, 'app/error.html')
            else:
                    new_wallet.save()
                    return render(request, 'app/response_wallet_executed.html')

form = WalletForm()
contex = {'form': form}
return render(request, 'app/wallet_new.html', contex)

I don't understand why the view create always a new wallet, please help me.The scope is to create a new UNIQUE wallet for user, and when a user that has a wallet, he would create a new wallet, the viewmust not allow it
