make_post_sell/make_post_sell
Russell Ballestrini ca1a71bcce Fix detached instance errors in physical product handling test
The test was failing due to SQLAlchemy DetachedInstanceError when
accessing object properties after transaction.manager.commit().

Changes:
- Save cart and shop UUIDs before commit to avoid detached access
- Re-query cart from database after commit using get_cart_by_id
- Pass shop_id parameter in cart URL to properly set request.shop
- Use saved UUID variables instead of accessing detached objects

This ensures request.shop_location is correctly resolved so the
handling options (local pickup, delivery, shipping) render properly
in the cart template.

All 357 tests now pass including the physical product handling test.
2025-11-01 09:56:21 -04:00
..
lib Implement Stripe disable/enable functionality and improve checkout UX 2025-10-04 10:41:20 -04:00
models Enhance product edit interface and improve cart layout 2025-10-09 11:00:52 -04:00
scripts Implement comprehensive dark mode functionality 2025-10-04 21:09:51 +00:00
static Restructure actions pages and user settings with action-columns layout 2025-10-06 18:26:30 -04:00
templates Fix CSRF token error for cart handling option selection 2025-10-16 09:14:53 -04:00
tests Fix detached instance errors in physical product handling test 2025-11-01 09:56:21 -04:00
views Fix session cookie bloat from crypto payment status tracking 2025-10-11 19:41:15 -04:00
__init__.py Add Monero (XMR) payment support 2025-09-22 01:45:54 +00:00
config_jinja2.py Time to open the sauce : ) 2021-12-31 21:39:40 -05:00
request_methods.py Fix comment deletion display and improve comment spacing 2025-10-04 10:55:54 -04:00
routes.py Add temporary read-only debug route for crypto wallet scanning issue 2025-09-28 15:53:35 -04:00