--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/project/scipycon/base/admin.py Tue Jul 20 15:44:39 2010 +0530
@@ -0,0 +1,45 @@
+from django.contrib import admin
+
+from project.scipycon.base.models import Event
+from project.scipycon.base.models import Timeline
+
+
+class EventAdmin(admin.ModelAdmin):
+ list_display = ('name', 'turn', 'status', 'scope')
+ list_filter = ('name', 'turn', 'status',)
+ search_fields = ('name', 'turn', 'status',)
+ fieldsets = (
+ ('Details', {
+ 'fields': ('name', 'turn', 'status', 'scope', 'timeline')
+ }),
+ )
+
+
+class TimelineAdmin(admin.ModelAdmin):
+ list_display = ('registration_start', 'registration_end', 'cfp_start',
+ 'cfp_end', 'accepted_papers_announced',
+ 'proceedings_paper_deadline', 'event_start',
+ 'event_end')
+ list_filter = ('registration_start', 'registration_end', 'cfp_start',
+ 'cfp_end', 'accepted_papers_announced',
+ 'proceedings_paper_deadline', 'event_start',
+ 'event_end')
+ search_fields = ('registration_start', 'registration_end', 'cfp_start',
+ 'cfp_end', 'accepted_papers_announced',
+ 'proceedings_paper_deadline', 'event_start',
+ 'event_end')
+ fieldsets = (
+ ('Registration', {
+ 'fields': ('registration_start', 'registration_end')
+ }),
+ ('Call for Papers', {
+ 'fields': ('cfp_start', 'cfp_end', 'accepted_papers_announced',
+ 'proceedings_paper_deadline')
+ }),
+ ('Event', {
+ 'fields': ('event_start', 'event_end')
+ }),
+ )
+
+admin.site.register(Event, EventAdmin)
+admin.site.register(Timeline, TimelineAdmin)