src/notes/settings.py
changeset 139 d3738ac909d8
child 142 56850f5c73f6
equal deleted inserted replaced
138:a1fb2ced3049 139:d3738ac909d8
       
     1 from django.conf import settings as base_settings
       
     2 
       
     3 DEFAULT_NOTES_SETTINGS = {
       
     4     'PROTOCOL': {
       
     5         "id": "a4977c1f-4752-4aff-b724-eec4033af25c",
       
     6         "owner": None,
       
     7         "revision": "1",
       
     8         "description": "Default protocol",
       
     9         "metacategories": [{
       
    10             "id": "e5712a76-857a-4769-b27e-a3ac3fb38b4d",
       
    11             "revision": 1,
       
    12             "base": None,
       
    13             "name": "Important",
       
    14             "description": "Important.",
       
    15             "color": "#F1C40F",
       
    16             "has_comment": False
       
    17         }, {
       
    18             "id": "06aded0d-5393-4eef-bad3-f18930047361",
       
    19             "revision": 1,
       
    20             "base": None,
       
    21             "name": "Mot-clé",
       
    22             "description": "Mot-clé.",
       
    23             "color": "#2ECC71",
       
    24             "has_comment": False
       
    25         }, {
       
    26             "id": "908d9190-2b43-4acc-bfc1-ab10d2c45663",
       
    27             "revision": 1,
       
    28             "base": None,
       
    29             "name": "Commentaire",
       
    30             "description": "Commentaire.",
       
    31             "color": "#3498DB",
       
    32             "has_comment": True
       
    33         }]
       
    34     }
       
    35 }
       
    36 
       
    37 NOTES_SETTINGS = dict(DEFAULT_NOTES_SETTINGS, **getattr(base_settings, 'NOTES_SETTINGS', {}))