Monday, October 4, 2021

Proposed bug in Admin

The following error message is reproducible from different Django
website admin systems used from Safari on an iPad. It is an old iPad so
that might be the issue.

Saving the substance does not produce a 500 error. The record gets saved
and the page redisplays correctly except the success message loses its
little green tick

It doesn't happen with Mozilla Firefox or Google Chrome on Windows 10.

The actual problem is the error message itself clogging up the
webmaster's mailbox. I think the workaround would be to override the css

ValueError at /admin/substance/substance/1426/img/icon-yes.svg/change/

Field 'id' expected a number but got '1426/img/icon-yes.svg'.

Request Method: GET
Request URL:
Django Version: 3.2.7
Exception Type: ValueError
Exception Value:

Field 'id' expected a number but got '1426/img/icon-yes.svg'.

Exception Location:
line 1827, in get_prep_value
Python Executable: /usr/bin/python3
Python Version: 3.6.9
Python Path:


Server time: Mon, 04 Oct 2021 07:26:42 +0000



Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment