From 6cfbc03503d82111a8529e000839027959b45639 Mon Sep 17 00:00:00 2001 From: lizerk Date: Thu, 10 Sep 2026 20:57:37 +0300 Subject: [PATCH] Upgrade push notifications and remove compatibility shim --- backend/eusrr_backend/settings.py | 2 +- backend/eusrr_backend/third_party_apps.py | 10 ---------- backend/requirements.txt | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 backend/eusrr_backend/third_party_apps.py diff --git a/backend/eusrr_backend/settings.py b/backend/eusrr_backend/settings.py index 120aa658..74b8808a 100644 --- a/backend/eusrr_backend/settings.py +++ b/backend/eusrr_backend/settings.py @@ -101,7 +101,7 @@ INSTALLED_APPS = [ "projects.apps.ProjectsConfig", "tasks.apps.TasksConfig", "guests.apps.GuestsConfig", - "eusrr_backend.third_party_apps.PushNotificationsConfig", # Web Push + "push_notifications", # Web Push ] MIDDLEWARE = [ diff --git a/backend/eusrr_backend/third_party_apps.py b/backend/eusrr_backend/third_party_apps.py deleted file mode 100644 index 3c9acd86..00000000 --- a/backend/eusrr_backend/third_party_apps.py +++ /dev/null @@ -1,10 +0,0 @@ -"""Compatibility settings for third-party applications with historical schemas.""" - -from django.apps import AppConfig - - -class PushNotificationsConfig(AppConfig): - # django-push-notifications 3.1 ships integer primary keys in its migrations. - # Do not inherit our project's BigAutoField and invent third-party migrations. - name = "push_notifications" - default_auto_field = "django.db.models.AutoField" diff --git a/backend/requirements.txt b/backend/requirements.txt index 45a38331..f431567e 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -59,7 +59,7 @@ django-fsm-2==4.2.4 rules==3.5 # Push Notifications -django-push-notifications==3.1.0 +django-push-notifications==3.3.0 py-vapid==1.9.2 pywebpush==2.1.2 http_ece==1.2.1