diff options
-rw-r--r-- | workshop_app/admin.py | 4 | ||||
-rw-r--r-- | workshop_portal/settings.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/workshop_app/admin.py b/workshop_app/admin.py index 40d496f..1b7ae9d 100644 --- a/workshop_app/admin.py +++ b/workshop_app/admin.py @@ -26,12 +26,12 @@ class ProfileAdmin(admin.ModelAdmin): filename=profile_data.csv' writer = csv.writer(response) - writer.writerow(['title','username', 'first_name', 'last_name', + writer.writerow(['email_id', 'title','username', 'first_name', 'last_name', 'institute', 'location', 'department', 'phone_number', 'position']) for q in queryset: - writer.writerow([q.title, q.user, q.user.first_name, + writer.writerow([q.user.email, q.title, q.user, q.user.first_name, q.user.last_name, q.institute, q.location, q.department, q.phone_number, q.position]) diff --git a/workshop_portal/settings.py b/workshop_portal/settings.py index 9451a1f..65c514f 100644 --- a/workshop_portal/settings.py +++ b/workshop_portal/settings.py @@ -165,8 +165,7 @@ EMAIL_USE_TLS = EMAIL_USE_TLS EMAIL_TIMEOUT = 300 SENDER_EMAIL = SENDER_EMAIL - -EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' #Change this to the production url PRODUCTION_URL = 'your_production_url' |