Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FieldError at /django-admin/django_mailbox/message/ on latest release. #287

Closed
xeroticikot opened this issue Apr 16, 2024 · 2 comments
Closed

Comments

@xeroticikot
Copy link
Contributor

Just installed the latest release with latest django version. Getting the following error on the django admin -

FieldError at /django-admin/django_mailbox/message/

Cannot resolve keyword 'attachements' into field. Choices are: attachments, body, eml, encoded, from_header, id, in_reply_to, in_reply_to_id, mailbox, mailbox_id, message_id, outgoing, processed, read, replies, subject, to_header

I believe the following line's causing the error -

class MessageAdmin(admin.ModelAdmin):
    def get_queryset(self, *args, **kwargs):
        return super().get_queryset(*args, **kwargs).annotate(num_attachments=Count('attachements'))

attachements should be attachments.

@Pietro395
Copy link
Collaborator

Pietro395 commented Apr 16, 2024

Fixed on #288

@Pietro395
Copy link
Collaborator

@xeroticikot version 4.10.1 has been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants