Fixing encoding in NewsItem. Close #55.
This commit is contained in:
parent
8b76c4a31a
commit
4a778497ce
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue