From 26cb103c3a5da1e1cb7d1f4a9544b9c6128a54b9 Mon Sep 17 00:00:00 2001 From: Mahmud Abdur Rahman Date: Tue, 16 Apr 2024 23:06:16 +0600 Subject: [PATCH] fixed the "attachements" string "attachements" was throwing the error on model admin. fixed the issue with removing the extra "e" from the string. --- django_mailbox/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_mailbox/admin.py b/django_mailbox/admin.py index aec4d000..1ba0246c 100644 --- a/django_mailbox/admin.py +++ b/django_mailbox/admin.py @@ -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