Code

Changes between Version 4 and Version 5 of ContribEmailAuth


Ignore:
Timestamp:
09/18/13 12:41:39 (10 months ago)
Author:
lukesneeringer
Comment:

Documenting the idea to have email user live in d.c.auth

Legend:

Unmodified
Added
Removed
Modified
  • ContribEmailAuth

    v4 v5  
    2020 
    2121The 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 
     23Note: 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. 
    2224 
    2325=== Advantages ===