#30985: Error when adding a group In admin - The database backend does not
accept 0
as a value for AutoField.
-------------------------------------------------+------------------------
Reporter: Juan Manuel Crescente | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------------+------------------------
ValueError at /admin/auth/group/add/
The database backend does not accept 0 as a value for AutoField.
Request Method: POST
Request URL:
http://localhost:8000/admin/auth/group/add/?_to_field=id&_popup=1
Django Version: 2.2.3
Exception Type: ValueError
Exception Value:
The database backend does not accept 0 as a value for AutoField.
Exception Location:
/Users/juan/Documents/manu/dev/yas/venv3/lib/python3.7/site-
packages/django/db/backends/mysql/operations.py in validate_autopk_value,
line 181
Python Executable:
/Users/juan/Documents/manu/dev/yas/venv3/bin/python
Python Version: 3.7.3
Python Path:
['/Users/juan/Documents/manu/dev/yas',
'/Users/juan/Documents/manu/dev/yas/venv3/lib/python37.zip',
'/Users/juan/Documents/manu/dev/yas/venv3/lib/python3.7',
'/Users/juan/Documents/manu/dev/yas/venv3/lib/python3.7/lib-dynload',
'/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7',
'/Users/juan/Documents/manu/dev/yas/venv3/lib/python3.7/site-packages']
Server time: Wed, 13 Nov 2019 19:12:05 +0000
in Django==2.2.3
--
Ticket URL: <https://code.djangoproject.com/ticket/30985>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.9cb118a281d86912eac2dd4d38d07039%40djangoproject.com.