Skip to content

Commit

Permalink
Added is_neutered and gender fields in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer-Bar committed Mar 19, 2024
1 parent f44f08d commit 619f9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pet/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

Expand Down

0 comments on commit 619f9d4

Please sign in to comment.