Skip to content

Commit 6db0942

Browse files
committed
Merge pull request #97 from scipy-conference/admintitles
display title and speaker in the admin
2 parents 84918dd + e70b474 commit 6db0942

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

scipy2014/proposals/admin.py

+28-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
11
from django.contrib import admin
22

3+
#from symposion.proposals.actions import export_as_csv_action
34
from scipy2014.proposals.models import TalkPosterProposal, TutorialProposal, BofProposal, SprintProposal
45

6+
class TalkPosterProposalAdmin(admin.ModelAdmin):
7+
model = TalkPosterProposal
8+
list_display = ['title', 'speaker', 'topic_track', 'domain_symposium']
9+
list_filter = ['submission_type', 'topic_track', 'domain_symposium']
10+
"""
11+
actions = [export_as_csv_action("CSV Export", fields=[
12+
"id",
13+
"title",
14+
"speaker",
15+
"speaker_email",
16+
"kind",
17+
])]
18+
"""
519

6-
admin.site.register(TalkPosterProposal)
7-
admin.site.register(TutorialProposal)
8-
admin.site.register(BofProposal)
9-
admin.site.register(SprintProposal)
20+
admin.site.register(TalkPosterProposal, TalkPosterProposalAdmin)
21+
admin.site.register(TutorialProposal,
22+
list_display = ['title', 'speaker', 'track'],
23+
list_filter = ['track'],
24+
date_heirarchy='submitted',
25+
)
26+
admin.site.register(BofProposal,
27+
list_display = ['title', 'speaker',],
28+
date_heirarchy='submitted',
29+
)
30+
admin.site.register(SprintProposal,
31+
list_display = ['title', 'speaker',],
32+
date_heirarchy='submitted',
33+
)

0 commit comments

Comments
 (0)