X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ea7d26f5d66da1ea50c548629a4940ff397b26bb..773a8c2da4c355af5d81d27a4849e9548e2d8864:/migdal/feeds.py diff --git a/migdal/feeds.py b/migdal/feeds.py index 8203735..33e9e0b 100644 --- a/migdal/feeds.py +++ b/migdal/feeds.py @@ -8,7 +8,7 @@ from django.shortcuts import get_object_or_404 from django.utils.translation import ugettext as _, string_concat from migdal import api from migdal.models import Category -from migdal.settings import TYPES_DICT +from migdal import app_settings class EntriesFeed(Feed): @@ -19,7 +19,7 @@ class EntriesFeed(Feed): else: category = None if type_db: - entry_type = TYPES_DICT[type_db] + entry_type = app_settings.TYPES_DICT[type_db] else: entry_type = None return {'entry_type': entry_type, 'category': category} @@ -53,4 +53,4 @@ class EntriesFeed(Feed): return string_concat("" % image, item.lead) def item_pubdate(self, item): - return item.date + return item.published_at