Commit d6c53e5a authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

added the admin panel for calendar app location model and event model

parent 0584e2cb
from django.contrib import admin 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 = ("mode", "venue",)
list_filter = ("venue",)
class EventAdmin(admin.ModelAdmin):
model = Event
list_display = ("target_datetime", "activity", "estimated_hours", "course", "location",)
search_fields = ("activity", "course", "location",)
admin.site.register(Event, EventAdmin)
admin.site.register(Location, LocationAdmin)
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