yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02553
[Bug 1183441] Re: Cannot download csv for tenant usage as an admin user
** Changed in: horizon
Status: Fix Committed => Fix Released
** Changed in: horizon
Milestone: None => havana-1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1183441
Title:
Cannot download csv for tenant usage as an admin user
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
To reproduce:
1. Go to Admin -> Projects
2. Click on View Usage
3. Click on Download CSV
AttributeError at /admin/projects/fa1f91e3ebbb470594159edaa159855a/usage/
'ProjectUsageView' object has no attribute 'csv_response_class'
Request Method: GET
Request URL: http://localhost/admin/projects/fa1f91e3ebbb470594159edaa159855a/usage/?month=5&year=2013&format=csv
Django Version: 1.5.1
Exception Type: AttributeError
Exception Value:
'ProjectUsageView' object has no attribute 'csv_response_class'
Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
115. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
38. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
86. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
54. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
38. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in view
68. return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
86. return handler(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in get
159. return self.render_to_response(context)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py" in render_to_response
47. render_class = self.csv_response_class
Exception Type: AttributeError at /admin/projects/fa1f91e3ebbb470594159edaa159855a/usage/
Exception Value: 'ProjectUsageView' object has no attribute 'csv_response_class'
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1183441/+subscriptions