Fixing encoding in NewsItem. Close #55.

This commit is contained in:
Víðir Valberg Guðmundsson 2016-06-10 20:05:36 +02:00
parent 8b76c4a31a
commit 4a778497ce

View file

@ -1,12 +1,14 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import models from django.db import models
from django.utils import encoding
from django.utils.text import slugify from django.utils.text import slugify
from utils.models import CreatedUpdatedModel from utils.models import CreatedUpdatedModel
from news.managers import NewsItemQuerySet from news.managers import NewsItemQuerySet
@encoding.python_2_unicode_compatible
class NewsItem(CreatedUpdatedModel): class NewsItem(CreatedUpdatedModel):
class Meta: class Meta:
ordering = ['-published_at'] ordering = ['-published_at']