Format code with black. Add makefile to run fmt/tests

This commit is contained in:
Griatch 2019-09-28 18:18:11 +02:00
parent d00bce9288
commit c2c7fa311a
299 changed files with 19037 additions and 11611 deletions

View file

@ -12,10 +12,11 @@ class ServerConfigAdmin(admin.ModelAdmin):
Custom admin for server configs
"""
list_display = ('db_key', 'db_value')
list_display_links = ('db_key',)
ordering = ['db_key', 'db_value']
search_fields = ['db_key']
list_display = ("db_key", "db_value")
list_display_links = ("db_key",)
ordering = ["db_key", "db_value"]
search_fields = ["db_key"]
save_as = True
save_on_top = True
list_select_related = True