2012-07-12 04:38:39 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
# from symposion.proposals.actions import export_as_csv_action
|
|
|
|
from symposion.proposals.models import ProposalSection, ProposalKind
|
|
|
|
|
|
|
|
|
|
|
|
# admin.site.register(Proposal,
|
|
|
|
# list_display = [
|
|
|
|
# "id",
|
|
|
|
# "title",
|
|
|
|
# "speaker",
|
|
|
|
# "speaker_email",
|
|
|
|
# "kind",
|
|
|
|
# "audience_level",
|
|
|
|
# "cancelled",
|
|
|
|
# ],
|
|
|
|
# list_filter = [
|
|
|
|
# "kind__name",
|
|
|
|
# "result__accepted",
|
|
|
|
# ],
|
|
|
|
# actions = [export_as_csv_action("CSV Export", fields=[
|
|
|
|
# "id",
|
|
|
|
# "title",
|
|
|
|
# "speaker",
|
|
|
|
# "speaker_email",
|
|
|
|
# "kind",
|
|
|
|
# ])]
|
|
|
|
# )
|
|
|
|
|
|
|
|
|
2017-09-22 06:37:36 +00:00
|
|
|
admin.site.register(ProposalSection,
|
|
|
|
list_display = [
|
|
|
|
"section",
|
|
|
|
"start",
|
|
|
|
"end",
|
|
|
|
"closed",
|
|
|
|
"published"
|
|
|
|
])
|
2012-07-12 04:38:39 +00:00
|
|
|
admin.site.register(ProposalKind)
|