From 5be1de141983feacc4c9cb420b64206e6256fc83 Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Thu, 7 Jul 2016 10:35:18 +0300 Subject: [PATCH] =?UTF-8?q?1452:=20=D0=AD=D1=82=D0=B0=D0=BF=20=E2=84=965:?= =?UTF-8?q?=20=D0=90=D0=BC=D0=B8=D0=BD=D0=BA=D0=B0=20=D0=B1=D0=B0=D0=B3?= =?UTF-8?q?=D0=B8=20-=20=D0=91=D0=B0=D0=B3=20=D1=81=20=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- expobanner/admin.py | 2 +- templates/admin/expobanner/link_list.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/expobanner/admin.py b/expobanner/admin.py index 475fdb31..eff4ff8e 100644 --- a/expobanner/admin.py +++ b/expobanner/admin.py @@ -108,7 +108,7 @@ class LinkList(AbstractList): def get_queryset(self): qs = super(LinkList, self).get_queryset() - qs = qs.filter(link=True) + qs = qs.filter(link=True).order_by('-created_at') return qs # UPDATE VIEWS diff --git a/templates/admin/expobanner/link_list.html b/templates/admin/expobanner/link_list.html index 399637a0..ab57268e 100644 --- a/templates/admin/expobanner/link_list.html +++ b/templates/admin/expobanner/link_list.html @@ -15,6 +15,7 @@ {% trans "Объект" %} {% trans "ссылка для отслеживания" %} + {% trans "целевая ссылка" %}     @@ -23,7 +24,8 @@ {% for item in object_list %} {{ item }} - {{request.get_host}}{{ item.get_click_link }} + {{request.get_host}}{{ item.get_click_link }} + {{ item.url }} {% trans "Изменить" %} {% trans "Статистика" %}