bornhack-website/camps/admin.py

30 lines
493 B
Python
Raw Normal View History

2015-10-03 01:07:05 +00:00
from django.contrib import admin
from .models import Camp, Expense, Signup
@admin.register(Expense)
class ExpenseAdmin(admin.ModelAdmin):
pass
class ExpenseInlineAdmin(admin.TabularInline):
model = Expense
@admin.register(Signup)
class SignupAdmin(admin.ModelAdmin):
pass
class SignupInlineAdmin(admin.TabularInline):
model = Signup
@admin.register(Camp)
class CampAdmin(admin.ModelAdmin):
inlines = [
ExpenseInlineAdmin,
SignupInlineAdmin
]