Changes between Version 6 and Version 7 of ContribAuthImprovements
- Timestamp:
- Mar 22, 2012, 8:44:02 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ContribAuthImprovements
v6 v7 110 110 Introduce an `USER_MODEL` setting (not necessarily related to `AUTH` at all) that defaults to `"auth.User"`. 111 111 112 Here is a branch of django trunk that implements the basic idea:113 114 * https://github.com/ogier/django/tree/auth-mixins Also refactors !auth.User into authentication, permissions and profile mixins112 There is a branch of django trunk that implements the basic idea: 113 114 * https://github.com/ogier/django/tree/auth-mixins Also refactors orthogonal authentication, permissions and profile mixins out of auth.User. 115 115 116 116 === Advantages === … … 123 123 Optionally: 124 124 125 * Split off as much of auth.User into orthogonal mixins that can be reused.125 * Split off as much as possible of auth.User into orthogonal mixins that can be reused. 126 126 * Modify auth.User to inherit these mixins. Care must be taken to ensure that the database expression of the new User model is identical to the old User model, to ensure backwards compatibility. 127 127 * Unrelated and third-party apps can indicate that they depend on various orthogonal mixins. For example, contrib.admin can specify that it works with auth.User out of the box, and with any model implementing !PermissionsMixin if you supply your own login forms.