From 619f9d46eff8de9e02af99c2af5d72ac3242846d Mon Sep 17 00:00:00 2001 From: Fer-Bar Date: Tue, 19 Mar 2024 18:36:05 -0400 Subject: [PATCH] Added is_neutered and gender fields in admin --- pet/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pet/admin.py b/pet/admin.py index 44ff5bd..0f87689 100644 --- a/pet/admin.py +++ b/pet/admin.py @@ -7,7 +7,7 @@ @admin.register(Pet) class PetAdmin(admin.ModelAdmin): search_fields = ["name", "owner"] - list_display = ("name", "breed", "age", "owner", "has_owner") + list_display = ("name", "breed", "gender", "age", "owner", "has_owner", "is_neutered") readonly_fields = ("age", ) list_filter = (HasOwnerFilter,)