Python 2 is sooo last decade.
This commit is contained in:
parent
09e1a1fd36
commit
ab2f7bc831
|
@ -1,12 +1,10 @@
|
||||||
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 django.urls import reverse
|
from django.urls import reverse
|
||||||
|
|
||||||
from utils.models import CreatedUpdatedModel
|
from utils.models import CreatedUpdatedModel
|
||||||
|
|
||||||
|
|
||||||
@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