This commit is contained in:
hgh 2025-08-31 16:48:00 +03:30
parent 3a5dfb1448
commit 9a5edac1ad

View file

@ -278,7 +278,7 @@ class CategoryDepositSubmitAPIView(generics.CreateAPIView):
category = get_object_or_404(Category.objects.all(), uuid=category_uuid)
else:
category = None
wallet = Wallet.objects.get_or_create(owner_uuid=application.uuid, owner_type=TypeChoices.APPLICATION,
wallet, _ = Wallet.objects.get_or_create(owner_uuid=application.uuid, owner_type=TypeChoices.APPLICATION,
category=category)
instance = serializer.save(payer_wallet=wallet, application=application)
try: