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):
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}
return string_concat("<img src='%s'/>" % image, item.lead)
def item_pubdate(self, item):
- return item.date
+ return item.published_at