summaryrefslogtreecommitdiff
path: root/workshop_app/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'workshop_app/admin.py')
-rw-r--r--workshop_app/admin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/workshop_app/admin.py b/workshop_app/admin.py
index 11f7b6d..a28cdb3 100644
--- a/workshop_app/admin.py
+++ b/workshop_app/admin.py
@@ -14,7 +14,7 @@ except ImportError:
#Custom Classes
class ProfileAdmin(admin.ModelAdmin):
- list_display = ['user', 'institute','department','phone_number','position']
+ list_display = ['title','user', 'institute','location','department','phone_number','position']
list_filter = ['position', 'department']
actions = ['download_csv']
@@ -25,12 +25,12 @@ class ProfileAdmin(admin.ModelAdmin):
filename=profile_data.csv'
writer = csv.writer(response)
- writer.writerow(['user', 'institute','department','phone_number',
+ writer.writerow(['title','user', 'institute', 'location','department','phone_number',
'position'])
for q in queryset:
- writer.writerow([q.user, q.institute,
- q.department, q.phone_number,
+ writer.writerow([q.title, q.user, q.institute,
+ q.location, q.department, q.phone_number,
q.position])
openfile.seek(0)