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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/N44N-mVZV10J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to