Skip to content

Commit

Permalink
feat: Added displayable feilds (#158)
Browse files Browse the repository at this point in the history
Co-authored-by: RehanAziz <rehanaziz@A006-00394.local>
  • Loading branch information
rehanedly and RehanAziz authored Oct 28, 2021
1 parent e34a895 commit a81af57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion event_routing_backends/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ class RouterConfigurationAdmin(KeyedConfigurationModelAdmin):
Admin model class for RouterConfiguration model.
"""

list_display = ('backend_name', 'route_url', 'is_enabled', 'configurations',)
history_list_display = ('status')
change_form_template = 'admin/router_conf_change_form.html'

def get_displayable_field_names(self):
"""
Get the list display.
"""
return ['backend_name', 'enabled', 'route_url', 'configurations']


admin.site.register(RouterConfiguration, RouterConfigurationAdmin)

0 comments on commit a81af57

Please sign in to comment.