Guest User

Extend Instance table

a guest
Dec 4th, 2014
266
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from django.utils.translation import ugettext_lazy as _
  2. from horizon import tables
  3. from openstack_dashboard.dashboards.project.instances import tables as project_tables
  4. from openstack_dashboard.dashboards.project.instances import views
  5.  
  6. class MyInstancesTable(project_tables.InstancesTable):
  7. pubname = tables.Column("pubname", verbose_name=_("Public name"))
  8.  
  9. views.IndexView.table_class = MyInstancesTable
RAW Paste Data