From 1454431baa6c5053153e8776a0250c8f5a392d15 Mon Sep 17 00:00:00 2001 From: Felipe Henrique de Almeida Bormann Date: Thu, 5 Jan 2017 13:08:23 -0300 Subject: [PATCH] added markers to cloud --- subjects/templates/subjects/initial.html | 4 ++-- subjects/views.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/subjects/templates/subjects/initial.html b/subjects/templates/subjects/initial.html index d45aeec..b920a4b 100644 --- a/subjects/templates/subjects/initial.html +++ b/subjects/templates/subjects/initial.html @@ -7,8 +7,8 @@
    - {% for user in users %} -
  • {{user.social_name}}
  • + {% for marker in markers %} +
  • {{marker.name}}
  • {% endfor %}
diff --git a/subjects/views.py b/subjects/views.py index 409b43d..e0ed525 100644 --- a/subjects/views.py +++ b/subjects/views.py @@ -21,6 +21,7 @@ from log.mixins import LogMixin from log.decorators import log_decorator_ajax from log.models import Log +from .models import Marker import time from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .forms import CreateSubjectForm @@ -53,8 +54,8 @@ class HomeView(LoginRequiredMixin, ListView): context['title'] = _('Home') #bringing users - users = User.objects.all() - context['users'] = users + markers = Marker.objects.all() + context['markers'] = markers return context -- libgit2 0.21.2