Skip to content

Commit

Permalink
Merge pull request #288 from xeroticikot/model-admin-fix
Browse files Browse the repository at this point in the history
fixed the "attachements" string
  • Loading branch information
Pietro395 authored Apr 16, 2024
2 parents 5dc7c7d + 26cb103 commit 7701701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_mailbox/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MessageAttachmentInline(admin.TabularInline):

class MessageAdmin(admin.ModelAdmin):
def get_queryset(self, *args, **kwargs):
return super().get_queryset(*args, **kwargs).annotate(num_attachments=Count('attachements'))
return super().get_queryset(*args, **kwargs).annotate(num_attachments=Count('attachments'))

def attachment_count(self, msg):
return msg.num_attachments
Expand Down

0 comments on commit 7701701

Please sign in to comment.