@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()
new_wallet.profile=request.user
new_wallet.save()
For wallet in wallets:
If new_wallet.profile == wallet.profile:
new_wallet.delete()
return to a page
elif new_wallet != wallet.profile:
New_wallet.save()
This is a view
Peppe
Anonymous
Zoro
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
Doragonsureiyā
cj
منتظر
Leodeth
Michael ✨
👍
Ulan
Charly
Akash
Вячеслав