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 ...@@ -2,14 +2,17 @@ from django.contrib import admin
from .models import Event, Location from .models import Event, Location
# Register your models here. # Register your models here.
class LocationAdmin(admin.ModelAdmin): class LocationAdmin(admin.ModelAdmin):
model = Location model = Location
list_display = ('mode', 'venue') list_display = ('mode', 'venue')
class EventAdmin(admin.ModelAdmin): class EventAdmin(admin.ModelAdmin):
model = Event 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(Location, LocationAdmin)
admin.site.register(Event, EventAdmin) 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