yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #20230
[Bug 1331429] Re: hard coded urls should go away
** Changed in: horizon
Status: Fix Committed => Fix Released
--
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/1331429
Title:
hard coded urls should go away
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/metering/views.py#L128
that kind of url computation should be replaced by named urls:
def get_context_data(self, **kwargs):
context = {'tables': self.get_tables().values()}
url = self.request.get_full_path().replace('/report', '/report/csv')
context['csv_url'] = url
return context
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1331429/+subscriptions
References