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

Cannot save message in django admin with empty eml field #150

Closed
cleonello opened this issue Sep 26, 2017 · 5 comments · Fixed by #282
Closed

Cannot save message in django admin with empty eml field #150

cleonello opened this issue Sep 26, 2017 · 5 comments · Fixed by #282

Comments

@cleonello
Copy link

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:

eml = models.FileField(
    _(u'Raw message contents'),
    null=True,
    upload_to="messages",
    help_text=_(u'Original full content of message')
)

to this:

eml = models.FileField(
    _(u'Raw message contents'),
    null=True,
    blank=True,
    upload_to="messages",
    help_text=_(u'Original full content of message')
)

I can create a pull request if necessary.

Thanks for all your work on this!

@coddingtonbear
Copy link
Owner

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.

olovwikberg pushed a commit to olovwikberg/django-mailbox that referenced this issue Feb 16, 2018
@lsaffre
Copy link

lsaffre commented Mar 5, 2021

The pull request is there, but it hasn't been pulled into master. Why? Or did I get something wrong?

@ad-m
Copy link
Collaborator

ad-m commented Mar 6, 2021

@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.

@lsaffre
Copy link

lsaffre commented Mar 8, 2021

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.

@pfouque
Copy link
Collaborator

pfouque commented Dec 17, 2023

Fixed in master branch, will be available in the next release.

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

Successfully merging a pull request may close this issue.

5 participants