Factor out User functions to a new model.

This commit is contained in:
Drew Larson
2016-07-04 18:57:28 -06:00
parent 085b9856c5
commit e3176bc05b
29 changed files with 121 additions and 631 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ STATICFILES_DIRS = [
STATIC_ROOT = 'static'
STATIC_URL = '/static/'
AUTH_USER_MODEL = 'registration.Member'
AUTH_USER_MODEL = 'registration.CustomUser'
COMPRESS_PRECOMPILERS = (
('text/x-scss', 'django_libsass.SassCompiler'),
@@ -53,7 +53,7 @@ def member_import():
try:
new_member = Member.objects.create(
email=row.get('email', None) or email_generator(),
email=row.get('email', None),
email_consent=row.get('email_consent', False),
first_name=row.get('first_name'),
last_name=row.get('last_name'),