]> git.openstreetmap.org Git - osqa.git/commitdiff
removed the / from badges so that all links to badges will work.
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 15 Jun 2010 20:45:08 +0000 (20:45 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 15 Jun 2010 20:45:08 +0000 (20:45 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@425 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/urls.py

index 0c36ffe5283af95bb8127ce6fbafc3dcd21570dd..b92311e800d9e20274597c59dc1c4bfc2929923e 100644 (file)
@@ -13,10 +13,10 @@ import logging
 
 admin.autodiscover()
 feeds = {
-'rss': RssLastestQuestionsFeed
+    'rss': RssLastestQuestionsFeed
 }
 sitemaps = {
-'questions': QuestionsSitemap
+    'questions': QuestionsSitemap
 }
 
 APP_PATH = os.path.dirname(__file__)
@@ -131,7 +131,7 @@ urlpatterns += patterns('',
                         url(r'^%s(?P<id>\d+)/(?P<slug>.+)/$' % _('users/'), app.users.user_stats, name='user_profile'),
 
                         url(r'^%s$' % _('badges/'), app.meta.badges, name='badges'),
-                        url(r'^%s(?P<id>\d+)/(?P<slug>.+)/$' % _('badges/'), app.meta.badge, name='badge'),
+                        url(r'^%s(?P<id>\d+)/(?P<slug>.+)$' % _('badges/'), app.meta.badge, name='badge'),
                         # (r'^admin/doc/' % _('admin/doc'), include('django.contrib.admindocs.urls')),
                         url(r'^%s(.*)' % _('nimda/'), admin.site.root, name='osqa_admin'),
                         url(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds},