1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-30 04:13:01 +00:00

Fixtures are more natural

This commit is contained in:
Yohann D'ANELLO 2020-03-22 14:54:05 +01:00 committed by Pierre-antoine Comby
parent c200ae8c3c
commit b9fac82d89
2 changed files with 389 additions and 251 deletions

View File

@ -3,8 +3,12 @@
"model": "note.note", "model": "note.note",
"pk": 1, "pk": 1,
"fields": { "fields": {
"polymorphic_ctype": 40, "polymorphic_ctype": [
"note",
"notespecial"
],
"balance": 0, "balance": 0,
"last_negative": null,
"is_active": true, "is_active": true,
"display_image": "", "display_image": "",
"created_at": "2020-02-20T20:02:48.778Z" "created_at": "2020-02-20T20:02:48.778Z"
@ -14,8 +18,12 @@
"model": "note.note", "model": "note.note",
"pk": 2, "pk": 2,
"fields": { "fields": {
"polymorphic_ctype": 40, "polymorphic_ctype": [
"note",
"notespecial"
],
"balance": 0, "balance": 0,
"last_negative": null,
"is_active": true, "is_active": true,
"display_image": "", "display_image": "",
"created_at": "2020-02-20T20:06:39.546Z" "created_at": "2020-02-20T20:06:39.546Z"
@ -25,8 +33,12 @@
"model": "note.note", "model": "note.note",
"pk": 3, "pk": 3,
"fields": { "fields": {
"polymorphic_ctype": 40, "polymorphic_ctype": [
"note",
"notespecial"
],
"balance": 0, "balance": 0,
"last_negative": null,
"is_active": true, "is_active": true,
"display_image": "", "display_image": "",
"created_at": "2020-02-20T20:06:43.049Z" "created_at": "2020-02-20T20:06:43.049Z"
@ -36,8 +48,12 @@
"model": "note.note", "model": "note.note",
"pk": 4, "pk": 4,
"fields": { "fields": {
"polymorphic_ctype": 40, "polymorphic_ctype": [
"note",
"notespecial"
],
"balance": 0, "balance": 0,
"last_negative": null,
"is_active": true, "is_active": true,
"display_image": "", "display_image": "",
"created_at": "2020-02-20T20:06:50.996Z" "created_at": "2020-02-20T20:06:50.996Z"
@ -47,8 +63,12 @@
"model": "note.note", "model": "note.note",
"pk": 5, "pk": 5,
"fields": { "fields": {
"polymorphic_ctype": 39, "polymorphic_ctype": [
"note",
"noteclub"
],
"balance": 0, "balance": 0,
"last_negative": null,
"is_active": true, "is_active": true,
"display_image": "", "display_image": "",
"created_at": "2020-02-20T20:09:38.615Z" "created_at": "2020-02-20T20:09:38.615Z"
@ -58,13 +78,46 @@
"model": "note.note", "model": "note.note",
"pk": 6, "pk": 6,
"fields": { "fields": {
"polymorphic_ctype": 39, "polymorphic_ctype": [
"note",
"noteclub"
],
"balance": 0, "balance": 0,
"last_negative": null,
"is_active": true, "is_active": true,
"display_image": "", "display_image": "",
"created_at": "2020-02-20T20:16:14.753Z" "created_at": "2020-02-20T20:16:14.753Z"
} }
}, },
{
"model": "note.note",
"pk": 7,
"fields": {
"polymorphic_ctype": [
"note",
"noteuser"
],
"balance": 0,
"last_negative": null,
"is_active": true,
"display_image": "pic/default.png",
"created_at": "2020-03-22T13:01:35.680Z"
}
},
{
"model": "note.noteclub",
"pk": 5,
"fields": {
"club": 1
}
},
{
"model": "note.noteclub",
"pk": 6,
"fields": {
"club": 2
}
},
{ {
"model": "note.notespecial", "model": "note.notespecial",
"pk": 1, "pk": 1,
@ -93,20 +146,6 @@
"special_type": "Virement bancaire" "special_type": "Virement bancaire"
} }
}, },
{
"model": "note.noteclub",
"pk": 5,
"fields": {
"club": 1
}
},
{
"model": "note.noteclub",
"pk": 6,
"fields": {
"club": 2
}
},
{ {
"model": "note.alias", "model": "note.alias",
"pk": 1, "pk": 1,

View File

@ -83,7 +83,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 1, "pk": 1,
"fields": { "fields": {
"model": 21, "model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -95,7 +98,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 2, "pk": 2,
"fields": { "fields": {
"model": 31, "model": [
"member",
"profile"
],
"query": "{\"user\": [\"user\"]}", "query": "{\"user\": [\"user\"]}",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -107,7 +113,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 3, "pk": 3,
"fields": { "fields": {
"model": 34, "model": [
"note",
"noteuser"
],
"query": "{\"pk\": [\"user\", \"note\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"note\", \"pk\"]}",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -119,7 +128,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 4, "pk": 4,
"fields": { "fields": {
"model": 25, "model": [
"authtoken",
"token"
],
"query": "{\"user\": [\"user\"]}", "query": "{\"user\": [\"user\"]}",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -131,7 +143,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 5, "pk": 5,
"fields": { "fields": {
"model": 36, "model": [
"note",
"transaction"
],
"query": "[\"OR\", {\"source\": [\"user\", \"note\"]}, {\"destination\": [\"user\", \"note\"]}]", "query": "[\"OR\", {\"source\": [\"user\", \"note\"]}, {\"destination\": [\"user\", \"note\"]}]",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -143,7 +158,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 6, "pk": 6,
"fields": { "fields": {
"model": 33, "model": [
"note",
"alias"
],
"query": "[\"OR\", {\"note__in\": [\"NoteUser\", \"objects\", [\"filter\", {\"user__membership__club__name\": \"Kfet\"}], [\"all\"]]}, {\"note__in\": [\"NoteClub\", \"objects\", [\"all\"]]}]", "query": "[\"OR\", {\"note__in\": [\"NoteUser\", \"objects\", [\"filter\", {\"user__membership__club__name\": \"Kfet\"}], [\"all\"]]}, {\"note__in\": [\"NoteClub\", \"objects\", [\"all\"]]}]",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -155,7 +173,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 7, "pk": 7,
"fields": { "fields": {
"model": 21, "model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -167,7 +188,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 8, "pk": 8,
"fields": { "fields": {
"model": 21, "model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -179,7 +203,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 9, "pk": 9,
"fields": { "fields": {
"model": 21, "model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -191,7 +218,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 10, "pk": 10,
"fields": { "fields": {
"model": 21, "model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -203,7 +233,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 11, "pk": 11,
"fields": { "fields": {
"model": 21, "model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -215,7 +248,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 12, "pk": 12,
"fields": { "fields": {
"model": 25, "model": [
"authtoken",
"token"
],
"query": "{\"user\": [\"user\"]}", "query": "{\"user\": [\"user\"]}",
"type": "delete", "type": "delete",
"mask": 1, "mask": 1,
@ -227,7 +263,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 13, "pk": 13,
"fields": { "fields": {
"model": 25, "model": [
"authtoken",
"token"
],
"query": "{\"user\": [\"user\"]}", "query": "{\"user\": [\"user\"]}",
"type": "add", "type": "add",
"mask": 1, "mask": 1,
@ -239,7 +278,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 14, "pk": 14,
"fields": { "fields": {
"model": 33, "model": [
"note",
"alias"
],
"query": "{\"note\": [\"user\", \"note\"]}", "query": "{\"note\": [\"user\", \"note\"]}",
"type": "delete", "type": "delete",
"mask": 1, "mask": 1,
@ -251,7 +293,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 15, "pk": 15,
"fields": { "fields": {
"model": 33, "model": [
"note",
"alias"
],
"query": "{\"note\": [\"user\", \"note\"]}", "query": "{\"note\": [\"user\", \"note\"]}",
"type": "add", "type": "add",
"mask": 1, "mask": 1,
@ -263,7 +308,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 16, "pk": 16,
"fields": { "fields": {
"model": 34, "model": [
"note",
"noteuser"
],
"query": "{\"pk\": [\"user\", \"note\", \"pk\"]}", "query": "{\"pk\": [\"user\", \"note\", \"pk\"]}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -275,7 +323,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 17, "pk": 17,
"fields": { "fields": {
"model": 36, "model": [
"note",
"transaction"
],
"query": "[\"AND\", {\"source\": [\"user\", \"note\"]}, {\"amount__lte\": [\"user\", \"note\", \"balance\"]}]", "query": "[\"AND\", {\"source\": [\"user\", \"note\"]}, {\"amount__lte\": [\"user\", \"note\", \"balance\"]}]",
"type": "add", "type": "add",
"mask": 1, "mask": 1,
@ -287,7 +338,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 18, "pk": 18,
"fields": { "fields": {
"model": 34, "model": [
"note",
"note"
],
"query": "{}", "query": "{}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -299,7 +353,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 19, "pk": 19,
"fields": { "fields": {
"model": 34, "model": [
"note",
"note"
],
"query": "[\"OR\", {\"pk\": [\"club\", \"note\", \"pk\"]}, {\"pk__in\": [\"NoteUser\", \"objects\", [\"filter\", {\"user__membership__club\": [\"club\"]}], [\"all\"]]}]", "query": "[\"OR\", {\"pk\": [\"club\", \"note\", \"pk\"]}, {\"pk__in\": [\"NoteUser\", \"objects\", [\"filter\", {\"user__membership__club\": [\"club\"]}], [\"all\"]]}]",
"type": "view", "type": "view",
"mask": 2, "mask": 2,
@ -311,7 +368,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 20, "pk": 20,
"fields": { "fields": {
"model": 36, "model": [
"note",
"transaction"
],
"query": "[\"AND\", [\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}], {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}]", "query": "[\"AND\", [\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}], {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}]",
"type": "add", "type": "add",
"mask": 2, "mask": 2,
@ -323,7 +383,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 21, "pk": 21,
"fields": { "fields": {
"model": 42, "model": [
"note",
"recurrenttransaction"
],
"query": "[\"AND\", {\"destination\": [\"club\", \"note\"]}, {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}]", "query": "[\"AND\", {\"destination\": [\"club\", \"note\"]}, {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}]",
"type": "add", "type": "add",
"mask": 2, "mask": 2,
@ -335,7 +398,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 22, "pk": 22,
"fields": { "fields": {
"model": 29, "model": [
"member",
"club"
],
"query": "{\"pk\": [\"club\", \"pk\"]}", "query": "{\"pk\": [\"club\", \"pk\"]}",
"type": "view", "type": "view",
"mask": 1, "mask": 1,
@ -347,7 +413,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 23, "pk": 23,
"fields": { "fields": {
"model": 36, "model": [
"note",
"transaction"
],
"query": "{}", "query": "{}",
"type": "change", "type": "change",
"mask": 1, "mask": 1,
@ -359,7 +428,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 24, "pk": 24,
"fields": { "fields": {
"model": 36, "model": [
"note",
"transaction"
],
"query": "{}", "query": "{}",
"type": "view", "type": "view",
"mask": 2, "mask": 2,
@ -371,7 +443,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 25, "pk": 25,
"fields": { "fields": {
"model": 40, "model": [
"note",
"notespecial"
],
"query": "{}", "query": "{}",
"type": "view", "type": "view",
"mask": 2, "mask": 2,
@ -383,7 +458,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 26, "pk": 26,
"fields": { "fields": {
"model": 43, "model": [
"note",
"specialtransaction"
],
"query": "{}", "query": "{}",
"type": "add", "type": "add",
"mask": 2, "mask": 2,
@ -395,7 +473,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 27, "pk": 27,
"fields": { "fields": {
"model": 35, "model": [
"note",
"templatecategory"
],
"query": "{}", "query": "{}",
"type": "view", "type": "view",
"mask": 2, "mask": 2,
@ -407,7 +488,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 28, "pk": 28,
"fields": { "fields": {
"model": 35, "model": [
"note",
"templatecategory"
],
"query": "{}", "query": "{}",
"type": "change", "type": "change",
"mask": 3, "mask": 3,
@ -419,7 +503,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 29, "pk": 29,
"fields": { "fields": {
"model": 35, "model": [
"note",
"templatecategory"
],
"query": "{}", "query": "{}",
"type": "add", "type": "add",
"mask": 3, "mask": 3,
@ -431,7 +518,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 30, "pk": 30,
"fields": { "fields": {
"model": 37, "model": [
"note",
"transactiontemplate"
],
"query": "{}", "query": "{}",
"type": "view", "type": "view",
"mask": 2, "mask": 2,
@ -443,7 +533,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 31, "pk": 31,
"fields": { "fields": {
"model": 37, "model": [
"note",
"transactiontemplate"
],
"query": "{}", "query": "{}",
"type": "add", "type": "add",
"mask": 3, "mask": 3,
@ -455,7 +548,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 32, "pk": 32,
"fields": { "fields": {
"model": 37, "model": [
"note",
"transactiontemplate"
],
"query": "{}", "query": "{}",
"type": "change", "type": "change",
"mask": 3, "mask": 3,
@ -467,7 +563,10 @@
"model": "permission.permission", "model": "permission.permission",
"pk": 33, "pk": 33,
"fields": { "fields": {
"model": 36, "model": [
"note",
"transaction"
],
"query": "{}", "query": "{}",
"type": "add", "type": "add",
"mask": 2, "mask": 2,