Many thanks to the 204 who people contributed 💚 to Django 5.0 🎉 :
- 4the4ryushin
- Adam Johnson
- Akash Kumar Sen
- Albert Defler
- Alberto Sottile
- Alexandre Spaeth
Many thanks to the 204 who people contributed 💚 to Django 5.0 🎉 :
None of the string methods modify this
– they always return fresh strings.
charAt(pos: number): string
ES1
Returns the character at index pos
, as a string (JavaScript does not have a datatype for characters). str[i]
is equivalent to str.charAt(i)
and more concise (caveat: may not work on old engines).
This proposal presents a "middle ground" approach to improving and refactoring auth.User
, based around a new concept of "profiles". These profiles provide the main customization hook for the user model, but the user model itself stays concrete and cannot be replaced.
I call it a middle ground because it doesn't go as far as refactoring the whole auth app -- a laudable goal, but one that I believe will ultimately take far too long -- but goes a bit further than just fixing the most egregious errors (username length, for example).
This proposal includes a fair number of design decisions -- you're reading the fifth or sixth draft. To keep things clear, the options have been pruned out and on the one I think is the "winner" is still there. But see the FAQ at the end for some discussion and justification of various choices.