From 4f546750afc1676cd8e5a0918100226ef456dcc1 Mon Sep 17 00:00:00 2001 From: vasileios Date: Thu, 11 May 2023 15:08:24 +0200 Subject: [PATCH 1/2] [#1442] Fixed django admin index fixture --- .../conf/fixtures/django-admin-index.json | 193 +++++------------- 1 file changed, 53 insertions(+), 140 deletions(-) diff --git a/src/open_inwoner/conf/fixtures/django-admin-index.json b/src/open_inwoner/conf/fixtures/django-admin-index.json index 81969d7979..9de2f99dfe 100644 --- a/src/open_inwoner/conf/fixtures/django-admin-index.json +++ b/src/open_inwoner/conf/fixtures/django-admin-index.json @@ -54,77 +54,35 @@ { "model": "admin_index.appgroup", "fields": { - "order": 10, - "name": "Overige / Diverse", - "slug": "overige-diverse", - "models": [ - [ - "admin_index", - "appgroup" - ], - [ - "admin_index", - "applink" - ], - [ - "admin_index", - "contenttypeproxy" - ], - [ - "easy_thumbnails", - "source" - ], - [ - "easy_thumbnails", - "thumbnail" - ], - [ - "easy_thumbnails", - "thumbnaildimensions" - ], - [ - "filer", - "folder" - ], - [ - "filer", - "folderpermission" - ] - ] + "order": 10, + "name": "Overige / Diverse", + "slug": "overige-diverse", + "models": [ + ["admin_index", "appgroup"], + ["admin_index", "applink"], + ["admin_index", "contenttypeproxy"], + ["easy_thumbnails", "source"], + ["easy_thumbnails", "thumbnail"], + ["easy_thumbnails", "thumbnaildimensions"], + ["filer", "folder"], + ["filer", "folderpermission"] + ] } }, { "model": "admin_index.appgroup", "fields": { - "order": 8, - "name": "Configuratie", - "slug": "configuratie", - "models": [ - [ - "configurations", - "siteconfiguration" - ], - [ - "configurations", - "siteconfigurationpage" - ], - [ - "custom_csp", - "cspsetting" - ], - [ - "flatpages", - "flatpage" - ], - [ - "mail_editor", - "mailtemplate" - ], - [ - "sites", - "site" - ] - ] + "order": 8, + "name": "Configuratie", + "slug": "configuratie", + "models": [ + ["configurations", "siteconfiguration"], + ["configurations", "siteconfigurationpage"], + ["custom_csp", "cspsetting"], + ["flatpages", "flatpage"], + ["mail_editor", "mailtemplate"], + ["sites", "site"] + ] } }, { @@ -169,27 +127,15 @@ { "model": "admin_index.appgroup", "fields": { - "order": 9, - "name": "Emails", - "slug": "emails", - "models": [ - [ - "django_yubin", - "blacklist" - ], - [ - "django_yubin", - "log" - ], - [ - "django_yubin", - "message" - ], - [ - "django_yubin", - "queuedmessage" - ] - ] + "order": 9, + "name": "Emails", + "slug": "emails", + "models": [ + ["django_yubin", "blacklist"], + ["django_yubin", "log"], + ["django_yubin", "message"], + ["django_yubin", "queuedmessage"] + ] } }, { @@ -215,62 +161,29 @@ ["zgw_consumers", "service"] ] } -}, -{ + }, + { "model": "admin_index.appgroup", "fields": { - "order": 7, - "name": "CMS", - "slug": "cms", - "models": [ - [ - "cms", - "aliaspluginmodel" - ], - [ - "cms", - "cmsplugin" - ], - [ - "cms", - "globalpagepermission" - ], - [ - "cms", - "page" - ], - [ - "cms", - "pagepermission" - ], - [ - "cms", - "pagetype" - ], - [ - "cms", - "pageuser" - ], - [ - "cms", - "pageusergroup" - ], - [ - "cms", - "placeholder" - ], - [ - "cms", - "placeholderreference" - ], - [ - "profile", - "profileconfig" - ] - ] + "order": 7, + "name": "CMS", + "slug": "cms", + "models": [ + ["cms", "aliaspluginmodel"], + ["cms", "cmsplugin"], + ["cms", "globalpagepermission"], + ["cms", "page"], + ["cms", "pagepermission"], + ["cms", "pagetype"], + ["cms", "pageuser"], + ["cms", "pageusergroup"], + ["cms", "placeholder"], + ["cms", "placeholderreference"], + ["profile", "profileconfig"] + ] } -}, -{ + }, + { "model": "admin_index.applink", "fields": { "order": 0, From 5b4f33b151bf4a6abc6540823aa591bdc4199886 Mon Sep 17 00:00:00 2001 From: vasileios Date: Fri, 12 May 2023 08:42:56 +0200 Subject: [PATCH 2/2] [#1442] Undo black format from json file --- .../conf/fixtures/django-admin-index.json | 566 ++++++++++++------ 1 file changed, 397 insertions(+), 169 deletions(-) diff --git a/src/open_inwoner/conf/fixtures/django-admin-index.json b/src/open_inwoner/conf/fixtures/django-admin-index.json index 9de2f99dfe..b915d44c9d 100644 --- a/src/open_inwoner/conf/fixtures/django-admin-index.json +++ b/src/open_inwoner/conf/fixtures/django-admin-index.json @@ -1,213 +1,441 @@ [ - { +{ "model": "admin_index.appgroup", "fields": { - "order": 0, - "name": "Gebruikersprofielen", - "slug": "accounts", - "models": [ - ["accounts", "action"], - ["accounts", "appointment"], - ["accounts", "document"], - ["accounts", "invite"], - ["accounts", "message"], - ["accounts", "user"] - ] + "order": 0, + "name": "Gebruikersprofielen", + "slug": "accounts", + "models": [ + [ + "accounts", + "action" + ], + [ + "accounts", + "appointment" + ], + [ + "accounts", + "document" + ], + [ + "accounts", + "invite" + ], + [ + "accounts", + "message" + ], + [ + "accounts", + "user" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 2, - "name": "PDC", - "slug": "pdc", - "models": [ - ["pdc", "category"], - ["pdc", "organization"], - ["pdc", "organizationtype"], - ["pdc", "product"], - ["pdc", "productcondition"], - ["pdc", "productcontact"], - ["pdc", "productlocation"], - ["pdc", "tag"], - ["pdc", "tagtype"] - ] + "order": 2, + "name": "PDC", + "slug": "pdc", + "models": [ + [ + "pdc", + "category" + ], + [ + "pdc", + "organization" + ], + [ + "pdc", + "organizationtype" + ], + [ + "pdc", + "product" + ], + [ + "pdc", + "productcondition" + ], + [ + "pdc", + "productcontact" + ], + [ + "pdc", + "productlocation" + ], + [ + "pdc", + "tag" + ], + [ + "pdc", + "tagtype" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 5, - "name": "Permissies, 2FA en logging", - "slug": "permissies-2fa-en-logging", - "models": [ - ["auth", "group"], - ["axes", "accessattempt"], - ["axes", "accesslog"], - ["cspreports", "cspreport"], - ["log_outgoing_requests", "outgoingrequestslog"], - ["otp_totp", "totpdevice"], - ["timeline_logger", "timelinelog"] - ] + "order": 5, + "name": "Permissies, 2FA en logging", + "slug": "permissies-2fa-en-logging", + "models": [ + [ + "auth", + "group" + ], + [ + "axes", + "accessattempt" + ], + [ + "axes", + "accesslog" + ], + [ + "cspreports", + "cspreport" + ], + [ + "log_outgoing_requests", + "outgoingrequestslog" + ], + [ + "otp_totp", + "totpdevice" + ], + [ + "timeline_logger", + "timelinelog" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 10, - "name": "Overige / Diverse", - "slug": "overige-diverse", - "models": [ - ["admin_index", "appgroup"], - ["admin_index", "applink"], - ["admin_index", "contenttypeproxy"], - ["easy_thumbnails", "source"], - ["easy_thumbnails", "thumbnail"], - ["easy_thumbnails", "thumbnaildimensions"], - ["filer", "folder"], - ["filer", "folderpermission"] - ] + "order": 10, + "name": "Overige / Diverse", + "slug": "overige-diverse", + "models": [ + [ + "admin_index", + "appgroup" + ], + [ + "admin_index", + "applink" + ], + [ + "admin_index", + "contenttypeproxy" + ], + [ + "easy_thumbnails", + "source" + ], + [ + "easy_thumbnails", + "thumbnail" + ], + [ + "easy_thumbnails", + "thumbnaildimensions" + ], + [ + "filer", + "folder" + ], + [ + "filer", + "folderpermission" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 8, - "name": "Configuratie", - "slug": "configuratie", - "models": [ - ["configurations", "siteconfiguration"], - ["configurations", "siteconfigurationpage"], - ["custom_csp", "cspsetting"], - ["flatpages", "flatpage"], - ["mail_editor", "mailtemplate"], - ["sites", "site"] - ] + "order": 8, + "name": "Configuratie", + "slug": "configuratie", + "models": [ + [ + "configurations", + "siteconfiguration" + ], + [ + "configurations", + "siteconfigurationpage" + ], + [ + "custom_csp", + "cspsetting" + ], + [ + "flatpages", + "flatpage" + ], + [ + "mail_editor", + "mailtemplate" + ], + [ + "sites", + "site" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 3, - "name": "Vragen en antwoorden", - "slug": "vraag-antwoord", - "models": [ - ["pdc", "question"], - ["questionnaire", "questionnairestep"], - ["questionnaire", "questionnairestepfile"] - ] + "order": 3, + "name": "Vragen en antwoorden", + "slug": "vraag-antwoord", + "models": [ + [ + "pdc", + "question" + ], + [ + "questionnaire", + "questionnairestep" + ], + [ + "questionnaire", + "questionnairestepfile" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 4, - "name": "Zoeken", - "slug": "zoeken", - "models": [ - ["search", "feedback"], - ["search", "fieldboost"], - ["search", "synonym"] - ] + "order": 4, + "name": "Zoeken", + "slug": "zoeken", + "models": [ + [ + "search", + "feedback" + ], + [ + "search", + "fieldboost" + ], + [ + "search", + "synonym" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 1, - "name": "Plannen", - "slug": "plannen", - "models": [ - ["plans", "actiontemplate"], - ["plans", "plan"], - ["plans", "plantemplate"] - ] + "order": 1, + "name": "Plannen", + "slug": "plannen", + "models": [ + [ + "plans", + "actiontemplate" + ], + [ + "plans", + "plan" + ], + [ + "plans", + "plantemplate" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 9, - "name": "Emails", - "slug": "emails", - "models": [ - ["django_yubin", "blacklist"], - ["django_yubin", "log"], - ["django_yubin", "message"], - ["django_yubin", "queuedmessage"] - ] + "order": 9, + "name": "Emails", + "slug": "emails", + "models": [ + [ + "django_yubin", + "blacklist" + ], + [ + "django_yubin", + "log" + ], + [ + "django_yubin", + "message" + ], + [ + "django_yubin", + "queuedmessage" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 6, - "name": "Koppelingen", - "slug": "koppelingen", - "models": [ - ["haalcentraal", "haalcentraalconfig"], - ["mozilla_django_oidc_db", "openidconnectconfig"], - ["notifications_api_common", "notificationsconfig"], - ["notifications_api_common", "subscription"], - ["openformsclient", "configuration"], - ["openzaak", "catalogusconfig"], - ["openzaak", "openzaakconfig"], - ["openzaak", "usercaseinfoobjectnotification"], - ["openzaak", "usercasestatusnotification"], - ["openzaak", "zaaktypeconfig"], - ["openzaak", "zaaktypeinformatieobjecttypeconfig"], - ["zgw_consumers", "certificate"], - ["zgw_consumers", "nlxconfig"], - ["zgw_consumers", "service"] - ] + "order": 6, + "name": "Koppelingen", + "slug": "koppelingen", + "models": [ + [ + "haalcentraal", + "haalcentraalconfig" + ], + [ + "mozilla_django_oidc_db", + "openidconnectconfig" + ], + [ + "notifications_api_common", + "notificationsconfig" + ], + [ + "notifications_api_common", + "subscription" + ], + [ + "openformsclient", + "configuration" + ], + [ + "openzaak", + "catalogusconfig" + ], + [ + "openzaak", + "openzaakconfig" + ], + [ + "openzaak", + "usercaseinfoobjectnotification" + ], + [ + "openzaak", + "usercasestatusnotification" + ], + [ + "openzaak", + "zaaktypeconfig" + ], + [ + "openzaak", + "zaaktypeinformatieobjecttypeconfig" + ], + [ + "zgw_consumers", + "certificate" + ], + [ + "zgw_consumers", + "nlxconfig" + ], + [ + "zgw_consumers", + "service" + ] + ] } - }, - { +}, +{ "model": "admin_index.appgroup", "fields": { - "order": 7, - "name": "CMS", - "slug": "cms", - "models": [ - ["cms", "aliaspluginmodel"], - ["cms", "cmsplugin"], - ["cms", "globalpagepermission"], - ["cms", "page"], - ["cms", "pagepermission"], - ["cms", "pagetype"], - ["cms", "pageuser"], - ["cms", "pageusergroup"], - ["cms", "placeholder"], - ["cms", "placeholderreference"], - ["profile", "profileconfig"] - ] + "order": 7, + "name": "CMS", + "slug": "cms", + "models": [ + [ + "cms", + "aliaspluginmodel" + ], + [ + "cms", + "cmsplugin" + ], + [ + "cms", + "globalpagepermission" + ], + [ + "cms", + "page" + ], + [ + "cms", + "pagepermission" + ], + [ + "cms", + "pagetype" + ], + [ + "cms", + "pageuser" + ], + [ + "cms", + "pageusergroup" + ], + [ + "cms", + "placeholder" + ], + [ + "cms", + "placeholderreference" + ], + [ + "profile", + "profileconfig" + ] + ] } - }, - { +}, +{ "model": "admin_index.applink", "fields": { - "order": 0, - "app_group": ["overige-diverse"], - "name": "Link naar Documentatie", - "link": "https://taiga.maykinmedia.nl/project/open-inwoner/wiki/home" + "order": 0, + "app_group": [ + "overige-diverse" + ], + "name": "Link naar Documentatie", + "link": "https://taiga.maykinmedia.nl/project/open-inwoner/wiki/home" } - }, - { +}, +{ "model": "admin_index.applink", "fields": { - "order": 1, - "app_group": ["overige-diverse"], - "name": "Link naar Github", - "link": "https://github.com/maykinmedia/open-inwoner" + "order": 1, + "app_group": [ + "overige-diverse" + ], + "name": "Link naar Github", + "link": "https://github.com/maykinmedia/open-inwoner" } - }, - { +}, +{ "model": "admin_index.applink", "fields": { - "order": 2, - "app_group": ["overige-diverse"], - "name": "Link naar Maykin", - "link": "https://www.maykinmedia.nl/nl/" + "order": 2, + "app_group": [ + "overige-diverse" + ], + "name": "Link naar Maykin", + "link": "https://www.maykinmedia.nl/nl/" } - } +} ]