pkmntrade.club/cards
badbl0cks 4e50e1545c Refactor card badge and multiselect template tags to properly implement and/or improve caching and context handling
- Updated `card_badge` and `card_multiselect` template tags to utilize `reverse_lazy` for URL resolution.
- Enhanced caching mechanisms in `card_badge.html` and `card_multiselect.html` to improve performance.
- Introduced a new template `_card_multiselect_options.html` for rendering multiselect options.
- Improved context management in `card_multiselect` to handle selected cards and dynamic placeholders.
- Added error handling for query hashing in `card_multiselect` to ensure robustness.
- Updated `trade_offer_tags` to optimize database queries using `select_related` for related objects.
2025-04-29 13:50:52 -07:00
..
migrations reorganizing build scripts 2025-04-17 16:21:26 -07:00
templatetags Refactor card badge and multiselect template tags to properly implement and/or improve caching and context handling 2025-04-29 13:50:52 -07:00
__init__.py Add initial cards tests 2025-03-27 00:16:34 -07:00
admin.py Refactor database models to majorly increase queries needed and decrease load times of home from 30 secs to 5 sec (we will be caching the rest to decrease even further via background tasks) 2025-03-17 14:08:01 -07:00
apps.py Refactor database models to majorly increase queries needed and decrease load times of home from 30 secs to 5 sec (we will be caching the rest to decrease even further via background tasks) 2025-03-17 14:08:01 -07:00
mixins.py Various small bug fixes, break out pagination for cards into its own mixin and templatetag 2025-03-29 00:27:40 -07:00
models.py Update seed data to include new cards, and modify hex codes for existing decks to be more different. Also add functionality to set a dark font color for card_badges if the bg color is too light 2025-03-28 00:39:08 -07:00
signals.py fix card badges to have better rarity visibility and other bugfixes 2025-04-06 22:33:01 -07:00
tests.py Fix friend_code max length issues in tests, and fix in_game_name length issues, also update tests to fit more scenarios 2025-03-27 17:26:07 -07:00
urls.py various small bugfixes; add cards list view 2025-03-28 16:03:31 -07:00
views.py fix pagination of card detail sections 2025-04-17 18:36:13 -07:00