Ejemplo n.º 1
0
    path('', CommunityModeratorItem.as_view(), name='community-moderator'),
]

community_moderators_patterns = [
    path('', CommunityModerators.as_view(), name='community-moderators'),
    path('search/',
         SearchCommunityModerators.as_view(),
         name='search-community-moderators'),
    path('<str:community_moderator_username>/',
         include(community_moderator_patterns)),
]

community_members_patterns = [
    path('', CommunityMembers.as_view(), name='community-members'),
    path('search/',
         SearchCommunityMembers.as_view(),
         name='search-community-members'),
    path('join/', JoinCommunity.as_view(), name='community-join'),
    path('leave/', LeaveCommunity.as_view(), name='community-leave'),
    path('invite/', InviteCommunityMember.as_view(), name='community-invite'),
    path('uninvite/',
         UninviteCommunityMember.as_view(),
         name='community-uninvite'),
]

community_posts_patterns = [
    path('', CommunityPosts.as_view(), name='community-posts'),
    path('closed/',
         ClosedCommunityPosts.as_view(),
         name='closed-community-posts'),
    path('count/',
Ejemplo n.º 2
0
    path('<str:community_administrator_username>/', include(community_administrator_patterns)),
]

community_moderator_patterns = [
    path('', CommunityModeratorItem.as_view(), name='community-moderator'),
]

community_moderators_patterns = [
    path('', CommunityModerators.as_view(), name='community-moderators'),
    path('search/', SearchCommunityModerators.as_view(), name='search-community-moderators'),
    path('<str:community_moderator_username>/', include(community_moderator_patterns)),
]

community_members_patterns = [
    path('', CommunityMembers.as_view(), name='community-members'),
    path('search/', SearchCommunityMembers.as_view(), name='search-community-members'),
    path('join/', JoinCommunity.as_view(), name='community-join'),
    path('leave/', LeaveCommunity.as_view(), name='community-leave'),
    path('invite/', InviteCommunityMember.as_view(), name='community-invite'),
    path('uninvite/', UninviteCommunityMember.as_view(), name='community-uninvite'),
]

community_posts_patterns = [
    path('', CommunityPosts.as_view(), name='community-posts'),
]

community_banned_users_patterns = [
    path('', CommunityBannedUsers.as_view(), name='community-banned-users'),
    path('search/', SearchCommunityBannedUsers.as_view(), name='search-community-banned-users'),
    path('ban/', BanUser.as_view(), name='community-ban-user'),
    path('unban/', UnbanUser.as_view(), name='community-unban-user'),