Skip to content

Commit

Permalink
Fixture, team structure bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaKotenko committed Jan 29, 2024
1 parent 1cc4c97 commit 95fb06f
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 10 deletions.
17 changes: 10 additions & 7 deletions docs/fixture/authorization.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
Superadmin
Login: [email protected]
Pass: Password
# Superadmin
- Login: [email protected]
- Pass: Password

Пользователи:
Пароль для всех: upass
# Пользователи:
- Пароль для всех: upass
-
# Директор:
[email protected]

Руководители команд:
# Руководители команд:
[email protected]
[email protected]
[email protected]

Сотрудники:
# Сотрудники:
[email protected]
[email protected]
[email protected]
Expand Down
7 changes: 7 additions & 0 deletions docs/fixture/users_position_dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,12 @@
"fields": {
"name": "Дизайнер"
}
},
{
"model": "users.position",
"pk": 8,
"fields": {
"name": "Директор"
}
}
]
9 changes: 9 additions & 0 deletions docs/fixture/users_team_dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,14 @@
"boss": 8,
"created_at": "2024-01-29T16:01:22.524Z"
}
},
{
"model": "users.team",
"pk": 4,
"fields": {
"name": "Менеджмент",
"boss": 11,
"created_at": "2024-01-29T17:01:57.507Z"
}
}
]
28 changes: 25 additions & 3 deletions docs/fixture/users_user_dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"username": "Sheremetev",
"userpic": "userpic/01.jpg",
"position": 1,
"team": null,
"team": 4,
"groups": [],
"user_permissions": []
}
Expand Down Expand Up @@ -104,7 +104,7 @@
"username": "Razumovskij",
"userpic": "userpic/04.jpg",
"position": 3,
"team": 2,
"team": 4,
"groups": [],
"user_permissions": []
}
Expand Down Expand Up @@ -170,7 +170,7 @@
"username": "Orlov",
"userpic": "userpic/07.jpg",
"position": 6,
"team": 3,
"team": 4,
"groups": [],
"user_permissions": []
}
Expand Down Expand Up @@ -218,5 +218,27 @@
"groups": [],
"user_permissions": []
}
},
{
"model": "users.user",
"pk": 11,
"fields": {
"password": "upass",
"last_login": null,
"is_superuser": false,
"is_staff": false,
"is_active": true,
"date_joined": "2024-01-29T17:01:27.361Z",
"email": "[email protected]",
"last_name": "Романов",
"first_name": "Пётр",
"patronymic": "Алекссевич",
"username": "Romanov",
"userpic": "userpic/010.jpg",
"position": 8,
"team": null,
"groups": [],
"user_permissions": []
}
}
]
Binary file added media/userpic/010.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95fb06f

Please sign in to comment.