get orgs and services from user

this endpoint should probably only be used for the choose-service page
also create an OrganisationBrowsableItem to aid rendering of them
in the front-end.
This commit is contained in:
Leo Hemsted
2018-03-07 18:10:14 +00:00
parent 4edd990bc7
commit ee665caa7d
4 changed files with 19 additions and 2 deletions

View File

@@ -33,14 +33,14 @@ FAILURE_STATUSES = ['failed', 'temporary-failure', 'permanent-failure', 'technic
REQUESTED_STATUSES = SENDING_STATUSES + DELIVERED_STATUSES + FAILURE_STATUSES
class BrowsableItem(object):
class BrowsableItem:
"""
Maps for the template browse-list.
"""
def __init__(self, item, *args, **kwargs):
print(self, item)
self._item = item
super(BrowsableItem, self).__init__()
@property
def title(self):