30 lines
493 B
Python
30 lines
493 B
Python
|
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
|
||
|
]
|