mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-05 14:58:43 +00:00
better urls and views for group creation and editing
This commit is contained in:
parent
f3181690a2
commit
0ccd54b05a
2 changed files with 2 additions and 2 deletions
|
@ -298,7 +298,7 @@ class ListForm(CustomForm):
|
|||
class GroupForm(CustomForm):
|
||||
class Meta:
|
||||
model = models.Group
|
||||
fields = ["manager", "privacy", "name", "description"]
|
||||
fields = ["user", "privacy", "name", "description"]
|
||||
|
||||
class ReportForm(CustomForm):
|
||||
class Meta:
|
||||
|
|
|
@ -253,7 +253,7 @@ urlpatterns = [
|
|||
re_path(r"^hide-suggestions/?$", views.hide_suggestions, name="hide-suggestions"),
|
||||
# groups
|
||||
re_path(rf"{USER_PATH}/groups/?$", views.UserGroups.as_view(), name="user-groups"),
|
||||
re_path(r"^create-group/?$", views.create_group, name="create-group"),
|
||||
# re_path(r"^create-group/?$", views.create_group, name="create-group"),
|
||||
re_path(r"^group/(?P<group_id>\d+)(.json)?/?$", views.Group.as_view(), name="group"),
|
||||
re_path(r"^group/(?P<group_id>\d+)/add-users/?$", views.FindUsers.as_view(), name="group-find-users"),
|
||||
re_path(r"^add-group-member/?$", views.add_member, name="add-group-member"),
|
||||
|
|
Loading…
Reference in a new issue