notifications/apps
Ali Asadi a643fee027 FIX(notifications): action_code accepts dots, PushMessage.stats actually updates
Found by an end-to-end run against a live Gotify container:

- action_code / NotificationLink.action_code were SlugField, which rejects
  dots. Every documented action_code (billboard.approved, escrow.timeout,
  ...) is dotted, so any real request using the catalog got a 400 before
  this fix -- only click_url ever worked. Switched both to CharField with
  a validator that keeps slug's charset but allows ".".
- send_push_notification set push_message.state instead of .stats after a
  successful send, so PushMessage.stats stayed stuck at INIT forever
  regardless of delivery outcome. Fixed the attribute name and scoped the
  save with update_fields.

Verified live: POST with a dotted action_code now resolves through
NotificationLink and lands in Gotify with the correct click.url, and the
PushMessage row flips to DONE.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 15:55:17 +03:30
..
core init 2025-06-29 22:15:11 +03:30
emails fail_silently=True 2026-04-22 14:20:37 +03:30
gooyal_oauth2 init 2025-06-29 17:09:37 +03:30
push_notifications FIX(notifications): action_code accepts dots, PushMessage.stats actually updates 2026-09-01 15:55:17 +03:30
users email 2025-09-06 12:22:07 +03:30
__init__.py init 2025-06-29 17:09:37 +03:30