Translations dashboard errors on missing languages for a page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Developer Portal |
Fix Released
|
Medium
|
David Callé |
Bug Description
Internal Server Error: /translations-
Traceback (most recent call last):
File "/usr/local/
response = wrapped_
File "/usr/local/
response = view_func(request, *args, **kwargs)
File "/srv/devportal
{'cms_pages': get_pages()},
File "/srv/devportal
dashboard_data, key=lambda k: k.get('en', None))))
TypeError: can't compare datetime.datetime to NoneType
========
Pages missing the 'en' language (which are a handful of very old pages that predates the public launch of the site) need to return a valid time instead of None.
Related branches
- Daniel Holbach (community): Approve
-
Diff: 31 lines (+7/-1)1 file modifiedtranslations_dashboard/views.py (+7/-1)
Changed in developer-ubuntu-com: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → David Callé (davidc3) |
Changed in developer-ubuntu-com: | |
status: | In Progress → Fix Committed |
Changed in developer-ubuntu-com: | |
status: | Fix Committed → Fix Released |