Rss custom feed and add an item eleman

24 views
Skip to first unread message

armagan

unread,
Jun 14, 2012, 8:50:44 AM6/14/12
to django...@googlegroups.com
Hi,

I want to add an item element to my rss. I used below code

class CustomFeed(Atom1Feed):

    def add_item_elements(self, handler, item):

        super(CustomFeed, self).add_item_elements(handler, item)

        handler.addQuickElement(u"city", item['city'])

And in my rss feed

def item_extra_kwargs(self, item):

        return { 'city': item.city, } 

But I have an error

'City' object has no attribute 'replace'

Can you help me?
Reply all
Reply to author
Forward
0 new messages