Changes between Version 15 and Version 16 of ContribAuthImprovements
- 04/03/2012 09:50:17 AM (3 years ago)
v15 v16 116 116 Introduce an `USER_MODEL` setting (not necessarily related to `AUTH` at all) that defaults to `"auth.User"`. 117 117 118 119 118 120 There is a branch of django trunk that implements the basic idea: 119 121 … … 138 140 * Doesn't address the !EmailField length problem for existing users. We could address this by having a User model (reflecting current field lengths) and a new !SimpleUser (that reflects better defaults); then use global_settings and project template settings to define which User is the default for new vs existing projects. 139 141 * Doesn't solve the analogous problem for any other project. 140 * Existing apps need to be updated to reflect the fact that auth.User may not be the User model. All instance of !ForeignKey(User) need to updated to !ForeignKey(settings.AUTH_USER). Failure modes will be unpredictable, as auth.User will still exist as a table, but won't contain any User information. 142 * Existing apps need to be updated to reflect the fact that auth.User may not be the User model. All instance of !ForeignKey(User) need to updated to !ForeignKey(settings.AUTH_USER). 141 143 * Still has the settings-models circular dependency problem 142 144 * As with Solution 2, prone to unpredictable problems if `USER_MODEL` is modified after the initial syncdb.