From d84267b8555a09e1500f839835439142d6c6fc95 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Mon, 9 Sep 2019 15:40:24 +0530 Subject: Update keynote speaker details, poster --- website/admin.py | 6 +++++- website/views.py | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'website') diff --git a/website/admin.py b/website/admin.py index d60a729..85a4b7e 100644 --- a/website/admin.py +++ b/website/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from .models import CFP, RegistrationDetail +from .models import CFP, RegistrationDetail, Proposal class CFPAdmin(admin.ModelAdmin): list_display = ['start_date','end_date','date_of_announcement'] @@ -7,5 +7,9 @@ class CFPAdmin(admin.ModelAdmin): class RegistrationDetailAdmin(admin.ModelAdmin): list_display = ['registration_type', 'start_date', 'end_date', 'registration_ticket','registration_description'] +class ProposalAdmin(admin.ModelAdmin): + list_display = ['title', 'email', 'phone'] + admin.site.register(CFP, CFPAdmin) admin.site.register(RegistrationDetail, RegistrationDetailAdmin) +admin.site.register(Proposal, ProposalAdmin) diff --git a/website/views.py b/website/views.py index ced25c1..2a93c36 100644 --- a/website/views.py +++ b/website/views.py @@ -42,10 +42,8 @@ def index(request): context = {} registration_details = RegistrationDetail.objects.all() context['registration_details'] = registration_details - # regular_dates = ImportantDate.objects.get(category='Regular') - # context['regular_dates'] = regular_dates - # lite_dates = ImportantDate.objects.get(category='Lite') - # context['lite_dates'] = lite_dates + cfp_dates = CFP.objects.get(id=1) + context['cfp_dates'] = cfp_dates template = loader.get_template('index.html') return HttpResponse(template.render(context, request)) -- cgit