From 61d03cfa9e05f6afae6809b85a128b35b2b92702 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 24 Sep 2012 16:21:47 +0200 Subject: [PATCH] cf brutasse#37 - Fix the broken nearest persons list in profile page It has been broken in the initial commit. --- djangopeople/djangopeople/templates/profile.html | 4 ++-- djangopeople/djangopeople/tests/tests_views.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/djangopeople/djangopeople/templates/profile.html b/djangopeople/djangopeople/templates/profile.html index aa3e8d2..1b710ab 100644 --- a/djangopeople/djangopeople/templates/profile.html +++ b/djangopeople/djangopeople/templates/profile.html @@ -113,11 +113,11 @@

{% blocktrans with name=person.user.first_name %}{{ name }}'s Django portfol
- {% if nearest_people %} + {% if people_list %}

{% blocktrans with name=person.user.first_name %}People near {{ name }}{% endblocktrans %}

    - {% for person in nearest_people %} + {% for person in people_list %}
  • {{ person }}

    {{ person }}

    diff --git a/djangopeople/djangopeople/tests/tests_views.py b/djangopeople/djangopeople/tests/tests_views.py index b2feeb3..8fbabe4 100644 --- a/djangopeople/djangopeople/tests/tests_views.py +++ b/djangopeople/djangopeople/tests/tests_views.py @@ -308,6 +308,7 @@ def test_user_profile(self): self.assertContains(response, 'cheese-shop') self.assertContains(response, 'full-time') self.assertContains(response, 'Vienna, Austria') + self.assertContains(response, 'People near Dave') def test_irc_active(self): url = reverse('irc_active')