|
1 | 1 | from django.contrib import admin
|
2 | 2 |
|
| 3 | +#from symposion.proposals.actions import export_as_csv_action |
3 | 4 | from scipy2014.proposals.models import TalkPosterProposal, TutorialProposal, BofProposal, SprintProposal
|
4 | 5 |
|
| 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 | + """ |
5 | 19 |
|
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