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:
https://xxxxxxxx/admin/substance/substance/1426/img/icon-yes.svg/change/
Django Version: 3.2.7
Exception Type: ValueError
Exception Value:
Field 'id' expected a number but got '1426/img/icon-yes.svg'.
Exception Location:
/usr/local/lib/python3.6/dist-packages/django/db/models/fields/__init__.py,
line 1827, in get_prep_value
Python Executable: /usr/bin/python3
Python Version: 3.6.9
Python Path:
['/var/www/ssds',
'/usr/lib/python36.zip',
'/usr/lib/python3.6',
'/usr/lib/python3.6/lib-dynload',
'/usr/local/lib/python3.6/dist-packages',
'/usr/lib/python3/dist-packages']
Server time: Mon, 04 Oct 2021 07:26:42 +0000
Cheers
Mike
--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/09fa9f09-adf2-fc7d-1b3b-52c16518e24e%40dewhirst.com.au.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment