-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to get invited users for a user and resend pending …
…invites
- Loading branch information
1 parent
8e84e58
commit 1192284
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
from django.conf.urls import url, include | ||
from rest_framework_nested import routers | ||
|
||
from organisations.views import InviteViewSet | ||
from . import views | ||
|
||
|
||
router = routers.DefaultRouter() | ||
router.register(r'', views.OrganisationViewSet, base_name="organisation") | ||
|
||
organisations_router = routers.NestedSimpleRouter(router, r'', lookup="organisation") | ||
organisations_router.register(r'invites', InviteViewSet, base_name="organisation-invites") | ||
|
||
app_name = "organisations" | ||
|
||
urlpatterns = [ | ||
url(r'^', include(router.urls)), | ||
url(r'^', include(organisations_router.urls)) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters