2009-05-13 05:13:38 +01:00
|
|
|
from troggle.expo.models import *
|
|
|
|
from django.contrib import admin
|
|
|
|
|
2009-05-13 05:21:27 +01:00
|
|
|
class RoleInline(admin.TabularInline):
|
|
|
|
model = PersonRole
|
|
|
|
extra = 4
|
|
|
|
|
|
|
|
class SurvexBlockAdmin(admin.ModelAdmin):
|
|
|
|
inlines = (RoleInline,)
|
|
|
|
|
2009-05-13 05:25:17 +01:00
|
|
|
admin.site.register(Photo)
|
2009-05-13 05:13:38 +01:00
|
|
|
admin.site.register(Cave)
|
|
|
|
admin.site.register(Area)
|
|
|
|
admin.site.register(OtherCaveName)
|
|
|
|
admin.site.register(CaveAndEntrance)
|
|
|
|
admin.site.register(SurveyStation)
|
|
|
|
admin.site.register(Entrance)
|
2009-05-13 05:21:27 +01:00
|
|
|
admin.site.register(SurvexBlock, SurvexBlockAdmin)
|
2009-05-13 05:13:38 +01:00
|
|
|
admin.site.register(Expedition)
|
|
|
|
admin.site.register(Person)
|
2009-05-13 05:21:27 +01:00
|
|
|
admin.site.register(PersonRole)
|
2009-05-13 05:13:38 +01:00
|
|
|
admin.site.register(PersonExpedition)
|
2009-05-13 05:21:27 +01:00
|
|
|
admin.site.register(Role)
|
2009-05-13 05:13:38 +01:00
|
|
|
admin.site.register(LogbookEntry)
|
|
|
|
admin.site.register(PersonTrip)
|
2009-05-13 05:15:20 +01:00
|
|
|
admin.site.register(QM)
|
2009-05-13 05:25:17 +01:00
|
|
|
|