aboutsummaryrefslogtreecommitdiffstats
path: root/schedule/admin.py
blob: 4b8ed5c3cd62464a4981d40b7bff2f22eab3e250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- coding: utf-8 -*-

from django.contrib import admin
from django.contrib.contenttypes import generic

from schedule.models import Event, EventAttachment


class EventAttachmentInline(generic.GenericTabularInline):
    model = EventAttachment

class EventAdmin(admin.ModelAdmin):
    inlines = [
        EventAttachmentInline,
    ]


# Register models to admin
admin.site.register(Event, EventAdmin)
admin.site.register(EventAttachment)