Open mosdevly opened 6 years ago
The abstract User needs a field: uid. It would be nice to use the short 22 char UUID field. You can checkout the resources below for details about this and weigh any pros/cons.
User
uid
UUIDField
This update requires:
User.uid
lookup_field
urls.py
Extra mile:
path
url
The abstract
User
needs a field:uid
. It would be nice to use the short 22 char UUID field. You can checkout the resources below for details about this and weigh any pros/cons.UUIDField
: https://docs.djangoproject.com/en/2.0/ref/models/fields/#uuidfieldThis update requires:
User.uid
that auto creates a uuid when a new user is created.lookup_field
urls.py
: routes need to use the new uidExtra mile:
path
function instead ofurl
: https://docs.djangoproject.com/en/2.0/ref/urls/#path