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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.