Changeset - 18addfe969da
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 10 years ago 2014-07-14 14:52:41
bkuhn@ebb.org
Additional issues deal with feed_dict deprecation.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
www/conservancy/feeds.py
Show inline comments
...
 
@@ -236,14 +236,15 @@ class BlogFeed(ConservancyFeedBase):
 
            queryset = queryset.filter(OR_filter('tags', 'slug', tags))
 

	
 
        return queryset.order_by('-pub_date')[:10]
 

	
 

	
 

	
 
for k, v in feed_dict.items():
 
    v.get_absolute_url = '/feeds/%s/' % k
 
BlogFeed.get_absolute_url = '/feeds/blog/'
 
PressRelease.get_absolute_url = '/feeds/news/'
 
OmnibusFeed.get_absolute_url = '/feeds/omnibus/'
 

	
 
def view(request):
 
    """Listing of all available feeds
 
    """
 

	
 
    feeds = feed_dict.values()
www/conservancy/urls.py
Show inline comments
...
 
@@ -15,13 +15,12 @@
 
#
 
# You should have received a copy of the GNU Affero General Public License
 
# along with this program in a file in the toplevel directory called
 
# "AGPLv3".  If not, see <http://www.gnu.org/licenses/>.
 

	
 
from django.conf.urls.defaults import *
 
from conservancy.feeds import feed_dict
 
from django.contrib import admin
 

	
 
handler404 = 'modpythoncustom.view404'
 

	
 
admin.autodiscover()
 

	
0 comments (0 inline, 0 general)