From 04e94aafa50ad11eb5598ac2badb25d7fe57a121 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Mon, 23 Jan 2017 13:04:23 +0200 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BB=D0=BE=D0=B3?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B1=D0=B0?= =?UTF-8?q?=D0=BD=D0=BD=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- expobanner/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expobanner/models.py b/expobanner/models.py index 4b7587d1..5ad93a31 100644 --- a/expobanner/models.py +++ b/expobanner/models.py @@ -165,7 +165,7 @@ class Banner(models.Model, StatMixin): 'group': self.group, 'ip': request.META.get('REMOTE_ADDR'), 'user_agent': request.META.get('HTTP_USER_AGENT'), - 'page': request.META.get('HTTP_REFERER', '')[:255], + 'page': request.META.get('HTTP_REFERER', '')[:200], } if request.user.is_authenticated():