#32500: Error "ValueError: Cannot serialize" while migrating a field containing
uppercase letters
---------------------------------+--------------------------------------
Reporter: TimurKhan | Owner: TimurKhan
Type: Bug | Status: closed
Component: Error reporting | Version: 3.1
Severity: Normal | Resolution: invalid
Keywords: serialize | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: assigned => closed
* resolution: => invalid
Comment:
You should use `.pk`, see #25129 and
[https://docs.djangoproject.com/en/3.1/ref/models/fields/#default docs].
--
Ticket URL: <https://code.djangoproject.com/ticket/32500#comment:2>
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/067.90868a8a2bc8ab6f8da06c578912a396%40djangoproject.com.