From: Shaun Ruffell <sruffell@digium.com>

Eliminates the following exception when clicking the feeds link from the
frontend.

Traceback:
File "/usr/local/autotest/site-packages/django/core/handlers/base.py" in get_response
92.                 response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/autotest/frontend/afe/feeds/feed.py" in feed_view
30.         feedgen = f(slug, request).get_feed(param)
File "/usr/local/autotest/frontend/afe/feeds/feed.py" in __init__
50.         super(JobFeed, self).__init__(slug, request.path)
File "/usr/local/autotest/site-packages/django/contrib/syndication/feeds.py" in __init__
33.         self.feed_url = self.feed_url or request.path

Exception Type: AttributeError at /afe/server/feeds/jobs/completed/
Exception Value: 'unicode' object has no attribute 'path'

Signed-off-by: Shaun Ruffell <sruffell@digium.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4595 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/feeds/feed.py b/frontend/afe/feeds/feed.py
index 7479446..58ffe97 100644
--- a/frontend/afe/feeds/feed.py
+++ b/frontend/afe/feeds/feed.py
@@ -47,7 +47,7 @@
     NUM_ITEMS = 20
 
     def __init__(self, slug, request):
-        super(JobFeed, self).__init__(slug, request.path)
+        super(JobFeed, self).__init__(slug, request)
         server_hostname = django.http.get_host(request)
         self.full_link = 'http://' + server_hostname + self.link