Commit 3f18340f authored by Rau Layug's avatar Rau Layug

Updated calendarapp admin view

parent fc8b56c6
......@@ -2,14 +2,17 @@ from django.contrib import admin
from .models import Event, Location
# Register your models here.
class LocationAdmin(admin.ModelAdmin):
model = Location
list_display = ('mode', 'venue')
class EventAdmin(admin.ModelAdmin):
model = Event
list_display = ('target_date', 'activity', 'estimated_hours', 'location')
list_display = ('target_date', 'activity', 'estimated_hours', 'course', 'location')
admin.site.register(Location, LocationAdmin)
admin.site.register(Event, EventAdmin)
\ No newline at end of file
admin.site.register(Event, EventAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment