Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Feb 20, 2025
1 parent 4e3634a commit 7b4c287
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion admin_panel/bd_models/admin/ball_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ class BallInstanceAdmin(admin.ModelAdmin):
),
]

list_display = ("description", "ball__country", "player", "health_bonus", "attack_bonus", "deleted")
list_display = (
"description",
"ball__country",
"player",
"health_bonus",
"attack_bonus",
"deleted",
)
list_select_related = ("ball", "special", "player")
list_filter = (SpecialFilter, BallFilter, PlayerFilter, "tradeable", "favorite")
show_facets = admin.ShowFacets.NEVER # hide filtered counts (considerable slowdown)
Expand Down
6 changes: 3 additions & 3 deletions admin_panel/bd_models/migrations/0006_ball_deleted.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('bd_models', '0005_alter_ball_short_name'),
("bd_models", "0005_alter_ball_short_name"),
]

operations = [
migrations.AddField(
model_name='ball',
name='deleted',
model_name="ball",
name="deleted",
field=models.BooleanField(default=False),
),
]

0 comments on commit 7b4c287

Please sign in to comment.