prelom/django/journal/management/commands/journal_remarkdown.py

16 lines
414 B
Python
Raw Normal View History

2022-11-29 17:27:36 +01:00
from django.core.management.base import BaseCommand
from journal.models import *
class Command(BaseCommand):
help = 'Refreshes formatted_* fields'
def handle(self, *args, **options):
for category in Category.objects.all():
category.save()
for author in Author.objects.all():
author.save()
for article in Article.objects.all():
article.save()