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

removed inline view

parent cecfc506
from django.contrib import admin
from .models import Event, Location
class LocationInline(admin.TabularInline):
model = Event
class LocationAdmin(admin.ModelAdmin):
model = Location
list_display = ("mode", "venue",)
......@@ -14,7 +11,6 @@ class EventAdmin(admin.ModelAdmin):
model = Event
list_display = ("target_datetime", "activity", "estimated_hours", "course", "location",)
search_fields = ("activity", "course", "location",)
inlines = [LocationInline, ]
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