* adds dynamic icon for recording and unrecording of data * adds record view to intervention and eco accounts * adds quality_check() method for Intervention and EcoAccount class which holds logic for data quality checking * adds UserAction "unrecorded"
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
"""
|
|
Author: Michel Peltriaux
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
Contact: michel.peltriaux@sgdnord.rlp.de
|
|
Created on: 15.12.20
|
|
|
|
"""
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from konova.settings import DEFAULT_GROUP, ZB_GROUP, ETS_GROUP
|
|
|
|
TEST_ORGANISATION_DATA = [
|
|
{
|
|
"name": "Test_Official_1",
|
|
},
|
|
{
|
|
"name": "Test_Official_2",
|
|
},
|
|
{
|
|
"name": "Test_NGO_1",
|
|
},
|
|
{
|
|
"name": "Test_Company_1",
|
|
},
|
|
]
|
|
|
|
GROUPS_DATA = [
|
|
{
|
|
"name": DEFAULT_GROUP,
|
|
},
|
|
{
|
|
"name": ZB_GROUP,
|
|
},
|
|
{
|
|
"name": ETS_GROUP,
|
|
},
|
|
]
|
|
|
|
# Must match with UserNotificationEnum
|
|
USER_NOTIFICATIONS_NAMES = {
|
|
"NOTIFY_ON_NEW_RELATED_DATA": _("On new related data"),
|
|
"NOTIFY_ON_SHARE_LINK_DISABLED": _("On disabled share link"),
|
|
"NOTIFY_ON_SHARED_ACCESS_REMOVED": _("On shared access removed"),
|
|
"NOTIFY_ON_SHARED_DATA_RECORDED": _("On shared data recorded"),
|
|
"NOTIFY_ON_SHARED_DATA_DELETED": _("On shared data deleted"),
|
|
"NOTIFY_ON_REGISTERED_DATA_EDITED": _("On registered data edited"),
|
|
} |