New Notification

* adds new notification setting to user settings form
* adds translations
* adds initial creating of ENUM on setup command
This commit is contained in:
2022-08-10 08:03:18 +02:00
parent 05145673e1
commit 3d10e84852
5 changed files with 49 additions and 41 deletions

View File

@@ -13,4 +13,5 @@ class UserNotificationEnum(BaseEnum):
NOTIFY_ON_SHARED_DATA_RECORDED = "NOTIFY_ON_SHARED_DATA_RECORDED" # notifies in case data has been "verzeichnet"
NOTIFY_ON_SHARED_DATA_DELETED = "NOTIFY_ON_SHARED_DATA_DELETED" # notifies in case data has been deleted
NOTIFY_ON_SHARED_DATA_CHECKED = "NOTIFY_ON_SHARED_DATA_CHECKED" # notifies in case shared data has been checked
NOTIFY_ON_SHARED_ACCESS_GAINED = "NOTIFY_ON_SHARED_ACCESS_GAINED" # notifies in case new access has been gained
NOTIFY_ON_SHARED_ACCESS_GAINED = "NOTIFY_ON_SHARED_ACCESS_GAINED" # notifies in case new access has been gained
NOTIFY_ON_DEDUCTION_CHANGES = "NOTIFY_ON_DEDUCTION_CHANGES" # notifies in case any changes (edit|remove) have been performed on a deduction of the user's ecoaccounts

View File

@@ -7,7 +7,7 @@ Created on: 08.07.21
"""
from dal import autocomplete
from django import forms
from django.db import IntegrityError, transaction
from django.db import transaction
from django.urls import reverse, reverse_lazy
from django.utils.translation import gettext_lazy as _