Comment 1 for bug 987838

Revision history for this message
Michael Nelson (michael.nelson) wrote :

This can be verified by someone with admin access, but I think the issue is that the application_screenshots view is 404'ing:

https://apps.ubuntu.com/cat/applications/screenshots/unity-lens-askubuntu/

because the package isn't marked as the latest package. I get the same 404 locally for the firefox package, and noticed this:

{{{
235 def application_screenshots(request, package_name):
236 import pdb;pdb.set_trace()
237 -> app = get_object_or_404(Application, package_name=package_name,
238 is_latest=True)
239 screenshots = WebServices().get_screenshots_for_package(package_name)
240 return HttpResponse(json.dumps(screenshots),
241 mimetype='application/json')
242
(Pdb) Application.objects.get(package_name=package_name)
<Application: Safe and easy web browser from Mozilla (firefox)>
(Pdb) Application.objects.get(package_name=package_name, is_latest=True)
*** DoesNotExist: Application matching query does not exist.
}}}