Skip to content

Commit

Permalink
Merge pull request #4 from Fer-Bar/feature/new-fields-in-pet-admin
Browse files Browse the repository at this point in the history
New fields is_neutered and gender in pet admin
  • Loading branch information
enrker authored Mar 20, 2024
2 parents f44f08d + 619f9d4 commit cbf6e37
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 cbf6e37

Please sign in to comment.