Put organisations on the user model

As in other places, putting a model layer between the view and the API
client makes the code cleaner and clearer.
This commit is contained in:
Chris Hill-Scott
2019-06-13 13:42:11 +01:00
parent 88e36d6841
commit 63ba3a6f30
7 changed files with 31 additions and 31 deletions
@@ -16,7 +16,7 @@
<h2 class="heading-medium">Services</h2>
<nav class="browse-list">
<ul>
{% for service in services %}
{% for service in user.all_services %}
<li class="browse-list-item">
<a class="browse-list-hint" href={{url_for('.service_dashboard', service_id=service.id)}}>{{ service.name }}</a>
</li>