-
Notifications
You must be signed in to change notification settings - Fork 168
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
Cannot save message in django admin with empty eml field #150
Comments
Ahh; that does seem like a bug, I agree. Totally file a pull request (and, if you can, generate a migration) and I'll be glad to merge it. |
The pull request is there, but it hasn't been pulled into master. Why? Or did I get something wrong? |
@lsaffre , pull request does not fulfill project standard and author of pull request does not reply to change requests. See comments of pull request. I may suggest taking over the job from a moderately cooperating PR author and proposing a PR that meets the project standards. This significantly increases the chance of being accepted. |
Understandable. I would love to help (and learn) a bit, but don't hope too much that this will happen. Too much work for my own projects. We use django-mailbox for a Lino plugin (https://www.lino-framework.org/api/lino_xl.lib.mailbox.html) and it works well (when we patch this little problem), but the plugin isn't used on any production site at the moment. When some paying customer shows interest, we will jump in. |
Fixed in master branch, will be available in the next release. |
Love django-mailbox. Came across some unexpected behavior, though. In the django admin, you cannot save a message if the eml ("Raw message contents") field is empty. It is a nullable field but required in the admin. Granted, this is likely a fringe use case, but it can be fixed by adding the "blank=True" option to the eml field in the Message model. That is, change this:
to this:
I can create a pull request if necessary.
Thanks for all your work on this!
The text was updated successfully, but these errors were encountered: