Skip to content

Commit

Permalink
Import orgbackend CRUDL from dash
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed May 28, 2018
1 parent 29ef9e8 commit e873020
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions casepro/orgs_ext/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ def test_home(self):
self.assertContains(response, "/label/create/")
self.assertContains(response, "/partner/create/")
self.assertContains(response, "/user/create/")
self.assertNotContains(response, reverse('orgs.orgbackend_list'))

self.login(self.superuser)

response = self.url_get("unicef", url)
self.assertContains(response, reverse('orgs.orgbackend_list'))

def test_edit(self):
url = reverse("orgs_ext.org_edit")
Expand Down
2 changes: 2 additions & 0 deletions casepro/orgs_ext/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from dash.orgs.views import OrgBackendCRUDL
from .views import OrgExtCRUDL, TaskExtCRUDL

urlpatterns = OrgExtCRUDL().as_urlpatterns()
urlpatterns += TaskExtCRUDL().as_urlpatterns()
urlpatterns += OrgBackendCRUDL().as_urlpatterns()

0 comments on commit e873020

Please sign in to comment.