Commit 343b66e4 authored by Ysabella Panghulan's avatar Ysabella Panghulan

registered calendar app models in admin

parent 9b582d5e
from django.contrib import admin
from .models import Event, Location
# Register your models here.
class LocationAdmin(admin.ModelAdmin):
model = Location
list_display = ('mode', 'venue',)
search_fields = ('venue',)
list_filter = ('mode',)
class EventAdmin(admin.ModelAdmin):
model = Event
list_display = ('activity','target_datetime', 'estimated_hours','location', 'course',)
search_fields = ('activity','course','location',)
list_filter = ('activity','target_datetime', 'course','location',)
admin.site.register(Location, LocationAdmin)
admin.site.register(Event, EventAdmin)
\ No newline at end of file
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