From 4a778497cefcc2623bcfdcd3ae4e54c6ffa93627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Fri, 10 Jun 2016 20:05:36 +0200 Subject: [PATCH] Fixing encoding in NewsItem. Close #55. --- news/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/news/models.py b/news/models.py index 508a1e3e..4b08b223 100644 --- a/news/models.py +++ b/news/models.py @@ -1,12 +1,14 @@ from __future__ import unicode_literals from django.db import models +from django.utils import encoding from django.utils.text import slugify from utils.models import CreatedUpdatedModel from news.managers import NewsItemQuerySet +@encoding.python_2_unicode_compatible class NewsItem(CreatedUpdatedModel): class Meta: ordering = ['-published_at']