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']