Skip to content

Commit

Permalink
add phone number to list_display
Browse files Browse the repository at this point in the history
  • Loading branch information
biagiodistefano committed Jan 20, 2025
1 parent 006ed22 commit 924edce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PersonAdmin(admin.ModelAdmin):

inlines = [AllergyInline]

list_display = ("first_name", "in_broadcast", "from_abroad", "whatsapp_message", "allergies_list")
list_display = ("first_name", "in_broadcast", "from_abroad", "phone_number", "whatsapp_message", "allergies_list")

@admin.display(description="Message")
def whatsapp_message(self, obj: Person) -> str:
Expand Down

0 comments on commit 924edce

Please sign in to comment.