Skip to content

Commit 7701701

Browse files
authored
Merge pull request #288 from xeroticikot/model-admin-fix
fixed the "attachements" string
2 parents 5dc7c7d + 26cb103 commit 7701701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mailbox/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class MessageAttachmentInline(admin.TabularInline):
6262

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

6767
def attachment_count(self, msg):
6868
return msg.num_attachments

0 commit comments

Comments
 (0)