2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-04 23:52:18 +00:00
troggle/feincms/management/commands/update_rsscontent.py
2009-05-21 19:47:19 +01:00

13 lines
355 B
Python

from django.core.management.base import NoArgsCommand
from feincms.content.rss.models import RSSContent
class Command(NoArgsCommand):
help = "Run this as a cronjob."
def handle_noargs(self, **options):
for cls in RSSContent._feincms_content_models:
for content in cls.objects.all():
content.cache_content()