diff --git a/musician/templates/musician/dashboard.html b/musician/templates/musician/dashboard.html index c5a653a..b738440 100644 --- a/musician/templates/musician/dashboard.html +++ b/musician/templates/musician/dashboard.html @@ -18,10 +18,10 @@

Domains and websites

Little description of what to be expected...

-{% for i in "123"|make_list %} +{% for domain in domains %}
-

domain.com

+

{{ domain.name }}

{% for service in "123"|make_list %}
diff --git a/musician/views.py b/musician/views.py index 6374c49..2035df6 100644 --- a/musician/views.py +++ b/musician/views.py @@ -15,6 +15,18 @@ from .mixins import CustomContextMixin, UserTokenRequiredMixin class DashboardView(CustomContextMixin, UserTokenRequiredMixin, TemplateView): template_name = "musician/dashboard.html" + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + + # TODO retrieve all data needed from orchestra + raw_domains = self.orchestra.retrieve_domains() + + context.update({ + 'domains': raw_domains + }) + + return context + class LoginView(FormView): template_name = 'auth/login.html'