Add group leader functionality and update group member management
- Create GroupLeader model and migration - Alter GroupLeader member field to include related_name - Implement is_leader and is_owner methods in Group model - Update GroupDetailView to pass leader and owner status to template - Refactor group buttons and members display into separate templates - Add view and URL for setting group leaders - Update permissions for adding/removing members and clearing blacklist - Bump version to 0.1.1 in uv.lock
This commit is contained in:
parent
6cd9c0c841
commit
7409b4cd8f
10 changed files with 244 additions and 101 deletions
|
@ -41,6 +41,11 @@ urlpatterns = [
|
|||
views.GroupRemoveMemberView.as_view(),
|
||||
name="group_remove_member",
|
||||
),
|
||||
path(
|
||||
"group/<int:pk>/set_leader/",
|
||||
views.GroupSetLead.as_view(),
|
||||
name="group_set_leader",
|
||||
),
|
||||
path(
|
||||
"group/<int:pk>/start_game/", views.GameCreateView.as_view(), name="start_game"
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue