bug fixes
- fix can't append str to None - fix ManyRelatedManager error in blog post announcements - fix timedelta doesn't have "month"
This commit is contained in:
parent
3c0544e5a1
commit
2d84788520
|
@ -209,6 +209,7 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
else None
|
else None
|
||||||
)
|
)
|
||||||
|
if description:
|
||||||
description += "..."
|
description += "..."
|
||||||
|
|
||||||
instance = models.Edition.objects.create(
|
instance = models.Edition.objects.create(
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Command(BaseCommand):
|
||||||
if (
|
if (
|
||||||
conf.announcements < 1
|
conf.announcements < 1
|
||||||
or (delta < timedelta(days=7))
|
or (delta < timedelta(days=7))
|
||||||
or (delta < timedelta(months=3) and conf.announcements < 2)
|
or (delta < timedelta(days=90) and conf.announcements < 2)
|
||||||
):
|
):
|
||||||
conf.announce()
|
conf.announce()
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ class Article(BlogData):
|
||||||
label = warning.is_in(text)
|
label = warning.is_in(text)
|
||||||
if label:
|
if label:
|
||||||
summmary.append(label)
|
summmary.append(label)
|
||||||
for tag in self.tags: # pylint: disable=E1133
|
for tag in self.tags.all(): # pylint: disable=E1133
|
||||||
label = warning.is_in(tag.name)
|
label = warning.is_in(tag.name)
|
||||||
if label:
|
if label:
|
||||||
summmary.append(label)
|
summmary.append(label)
|
||||||
|
|
Loading…
Reference in a new issue