From 812b2a25eb0d5eebb8990bf84aea8cf1677db3a3 Mon Sep 17 00:00:00 2001 From: CapooL <2053217188@qq.com> Date: Sat, 16 Sep 2023 17:24:26 +0800 Subject: [PATCH] style(word): reformat for black --- hinghwa-dict-backend/word/admin.py | 14 ++++++++------ .../word/migrations/0005_ListAdmin.py | 7 +++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/hinghwa-dict-backend/word/admin.py b/hinghwa-dict-backend/word/admin.py index b6ff2678..fc7b780c 100644 --- a/hinghwa-dict-backend/word/admin.py +++ b/hinghwa-dict-backend/word/admin.py @@ -184,15 +184,17 @@ class ApplicationAdmin(admin.ModelAdmin): class ListsAdmin(admin.ModelAdmin): - list_display = ["id", "name", "createTime", "updateTime", "description", "author", "include_words"] - list_filter = ["name", "author"] - search_fields = [ - "words_word", + list_display = [ + "id", "name", + "createTime", + "updateTime", "description", - "author" - "id" + "author", + "include_words", ] + list_filter = ["name", "author"] + search_fields = ["words_word", "name", "description", "author" "id"] ordering = ["-id"] list_per_page = 50 # filter_horizontal = ["words_included_word"] diff --git a/hinghwa-dict-backend/word/migrations/0005_ListAdmin.py b/hinghwa-dict-backend/word/migrations/0005_ListAdmin.py index f099f89d..7466a2d9 100644 --- a/hinghwa-dict-backend/word/migrations/0005_ListAdmin.py +++ b/hinghwa-dict-backend/word/migrations/0005_ListAdmin.py @@ -4,14 +4,13 @@ class Migration(migrations.Migration): - dependencies = [ - ('word', '0004_word_list'), + ("word", "0004_word_list"), ] operations = [ migrations.AlterModelOptions( - name='list', - options={'verbose_name': '词单', 'verbose_name_plural': '词单'}, + name="list", + options={"verbose_name": "词单", "verbose_name_plural": "词单"}, ), ]