2 ms·
Yep, looks like it does the right thing in PostgreSQL but not anywhere else [0]. https://docs.djangoproject.com/en/4.1/ref/models/fields/#uuidfield https://doc
by lolinder 4y ago
Yep, looks like it does the right thing in PostgreSQL but not anywhere else [0].
https://docs.djangoproject.com/en/4.1/ref/models/fields/#uuidfield https://docs.djangoproject.com/en/4.1/ref/models/fields/#uui...
- throwawaymaths 4y agoI feel like it did strings in postgres too, not too long ago and I had a <brain explode> moment when I worked on a codebase and had to figure out why queries were terrible
- lolinder 4y agoSupposedly the behavior hasn't changed since at least version 1.8: https://docs.djangoproject.com/en/1.8/ref/models/fields/#uuidfield https://docs.djangoproject.com/en/1.8/ref/models/fields/#uui... It may not have worked correctly on your project for some reason?
- throwawaymaths 4y agoActually now that I remember we were using MySQL and I was pushing for migrating to postgres partially for this reason, sorry it was a long time ago in startup time