+ if self.feeds_enabled:
+ feed_name = '%s_feed' % base_name
+ urlpatterns = patterns('',
+ url(r'^%s/$' % self.feed_suffix, self.feed_view(object_fetcher, feed_name), name=feed_name),
+ ) + urlpatterns
+ return urlpatterns
+
+ def add_item(self, feed, obj, kwargs=None):
+ defaults = kwargs or {}
+ feed.add_item(**defaults)
\ No newline at end of file