forked from mirror/django-mailbox
fixed the "attachements" string
"attachements" was throwing the error on model admin. fixed the issue with removing the extra "e" from the string.
This commit is contained in:
parent
5dc7c7d84a
commit
26cb103c3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue