Changes between Version 4 and Version 5 of ContribEmailAuth
- Timestamp:
- Sep 18, 2013, 2:41:39 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ContribEmailAuth
v4 v5 20 20 21 21 The approach I took is very similar to the one used in https://github.com/Liberationtech/django-libtech-emailuser. The primary difference is that django-libtech-emailuser does not contain a new abstract class, and instead contains a single concrete class EmailUser. 22 23 Note: A potential spinoff of this option would be to include the EmailUser model (and anything else necessary to support it) in the django.contrib.auth app. In this case, we'd have to write a rule into our model detection that basically says that if a model is subclasses AbstractBaseUser, include it in the app if and only if it is the value of the AUTH_USER_MODEL setting. This addresses the second "disadvantage" listed below, but adds more code. 22 24 23 25 === Advantages ===