[traceback] AttributeError: 'Revision' object has no attribute 'current_revision'

VERIFIED FIXED

Status

P2
major
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: stephend, Assigned: jbennett)

Tracking

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
http://developer.mozilla.org/en-US/docs/feeds/json/revisions throws the following:

Traceback (most recent call last):

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/feeds.py", line 36, in __call__
    return super(DocumentsFeed, self).__call__(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/contrib/syndication/views.py", line 40, in __call__
    feedgen.write(response, 'utf-8')

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/feeds.py", line 99, in write
    revision = document.current_revision

AttributeError: 'Revision' object has no attribute 'current_revision'
(Assignee)

Updated

6 years ago
Assignee: nobody → jbennett
Priority: -- → P2
Version: Kuma → unspecified
Component: Website → Landing pages
Product: Mozilla Developer Network → Mozilla Developer Network
(Assignee)

Comment 1

6 years ago
The bug here in DocumentJSONFeedGenerator, and looking at the code I believe Les fixed it while he was doing other things in bug 781586.
(Reporter)

Comment 2

6 years ago
Created attachment 665063 [details]
Post-fix screenshot
(Assignee)

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

6 years ago
Verified FIXED; looks like this was fixed in https://github.com/mozilla/kuma/commit/57c715c18bc3825b81f43387d20802af683d5c2d#L0R107
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.