Commit 4dd9e098 authored by justin's avatar justin

Added basic admin panel settings

parent 1ad8caf4
from django.contrib import admin
from .models import Location, Event
# Register your models here.
class LocationAdmin(admin.ModelAdmin):
model = Location
list_display = (
"venue",
"mode",
)
search_fields = (
"venue",
"mode",
)
class EventAdmin(admin.ModelAdmin):
model = Event
list_display = (
"activity",
"target_datetime",
"estimated_hours",
"location",
"course",
)
search_fields = (
"activity",
"location",
"course",
)
admin.site.register(Location, LocationAdmin)
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