We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5dc7c7d + 26cb103 commit 7701701Copy full SHA for 7701701
django_mailbox/admin.py
@@ -62,7 +62,7 @@ class MessageAttachmentInline(admin.TabularInline):
62
63
class MessageAdmin(admin.ModelAdmin):
64
def get_queryset(self, *args, **kwargs):
65
- return super().get_queryset(*args, **kwargs).annotate(num_attachments=Count('attachements'))
+ return super().get_queryset(*args, **kwargs).annotate(num_attachments=Count('attachments'))
66
67
def attachment_count(self, msg):
68
return msg.num_attachments
0 commit comments