@jzoldak actually I got the comment wrong. We're using the 3rd element (0th indexing), so the code matches the docs, but the comment says 2nd as a typo. I'll update comment.

While it's inelegant to do this, I do think it's safe with respect to Django upgrades. I don't think they would change the formatting of these between version because it would be an incompatible change as all those passwords are persisted in the database.