Skip to content

Commit

Permalink
shipper: admin: add enabled field to column and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswpark committed Jun 30, 2021
1 parent 7c77375 commit a99a9bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shipper/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def get_maintainers(self, obj):


class BuildAdmin(admin.ModelAdmin):
list_display = ['id', 'file_name', 'get_device_name', 'size', 'version', 'variant', 'get_build_device_maintainers',
'is_processed', 'is_backed_up', 'created']
list_display = ['id', 'enabled', 'file_name', 'get_device_name', 'size', 'version', 'variant',
'get_build_device_maintainers', 'is_processed', 'is_backed_up', 'created']
list_filter = ['enabled']
ordering = ['-created']

def is_processed(self, obj):
Expand Down

0 comments on commit a99a9bb

Please sign in to comment.