]> git.parisson.com Git - teleforma.git/commitdiff
fix object list
authoryomguy <yomguy@parisson.com>
Mon, 18 Feb 2013 19:37:10 +0000 (20:37 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 18 Feb 2013 19:37:10 +0000 (20:37 +0100)
teleforma/templates/teleforma/inc/answer_list.html
teleforma/views/pro.py

index 4b5a7c9639a8e14bd8945e2fa6aa9fd858492742..3f3723976cafee070650349da554e067024581bd 100644 (file)
@@ -3,7 +3,7 @@
 {% load teleforma_tags %}
 {% load pagination_tags %}
 
-{% autopaginate object_list %}
+{% autopaginate object_list 10 %}
 {% paginate %}
 
 <div id="users">
@@ -18,7 +18,7 @@
     </tr>
     </thead>
     <tbody id="spacing">
-    {% for answer in page.object_list %}
+    {% for answer in object_list %}
     <tr>
      <td><a href="{% url teleforma-profile-detail answer.user.username %}">{{ answer.user.last_name }}</a></td>
      <td><a href="{% url teleforma-profile-detail answer.user.username %}">{{ answer.user.first_name }}</a></td>
index eb25b4121078ba626a475f1e260b184a3a02a951..070272c7ffda3b4ceda17e3dde75db74c7d8acff 100644 (file)
@@ -270,6 +270,10 @@ class AnswersView(ListView):
     def get_queryset(self):
         return Answer.objects.filter(status=3)
 
+    def get_context_data(self, **kwargs):
+        context = super(AnswersView, self).get_context_data(**kwargs)
+        return context
+
     @method_decorator(permission_required('is_superuser'))
     @method_decorator(login_required)
     def dispatch(self, *args, **kwargs):