Skip to content

Commit

Permalink
fixed the "attachements" string
Browse files Browse the repository at this point in the history
"attachements" was throwing the error on model admin. fixed the issue with removing the extra "e" from the string.
  • Loading branch information
xeroticikot authored Apr 16, 2024
1 parent 5dc7c7d commit 26cb103
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 26cb103

Please sign in to comment.