Files
octopus/myproject
Andrey Smakotin ffdab80698 fix: Allow payment saving during new order creation
Fixed PaymentForm.clean() validation that was preventing payments from
being saved on new orders. The validation required order to exist, but
during creation self.instance.order is None until formset is saved.

Changes:
- Removed hard requirement for order in PaymentForm.clean()
- Wallet balance checks now only run when order exists
- Empty payment forms still allowed (for deletion in formset)
- Basic amount validation maintained

This fixes the issue where payments wouldn't persist when creating
a new order, even though no validation errors were shown to user.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 23:47:50 +03:00
..