~fo0bar/turku/bionic

« back to all changes in this revision

Viewing changes to turku_api/admin.py

  • Committer: Ryan Finnie
  • Date: 2015-03-27 07:22:30 UTC
  • Revision ID: ryan.finnie@canonical.com-20150327072230-0jflqg0a9sz6gbqr
Add machine/storage published options

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    form = MachineAdminForm
91
91
    list_display = (
92
92
        'unit_name', 'uuid', 'storage_link', 'environment_name',
93
 
        'service_name', 'date_checked_in', 'active', 'healthy',
 
93
        'service_name', 'date_checked_in', 'published', 'active',
 
94
        'healthy',
94
95
    )
95
96
    list_display_links = ('unit_name',)
96
 
    list_filter = ('date_checked_in', 'storage', 'active')
 
97
    list_filter = ('date_checked_in', 'storage', 'active', 'published')
97
98
    ordering = ('unit_name',)
98
99
    search_fields = (
99
100
        'unit_name', 'uuid', 'environment_name', 'service_name',
187
188
    form = StorageAdminForm
188
189
    list_display = (
189
190
        'name', 'ssh_ping_host', 'ssh_ping_user', 'date_checked_in',
190
 
        'space_total_human', 'space_available_human', 'active', 'healthy',
 
191
        'space_total_human', 'space_available_human', 'published', 'active',
 
192
        'healthy',
191
193
    )
192
194
    ordering = ('name',)
193
195
    search_fields = ('name', 'comment', 'ssh_ping_host',)