Commit 356cfd01 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

Updated admin.py comments for calendar app

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