forked from expo/troggle
c6cce8d2fe
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8152 by aaron @ 1/15/2009 6:22 AM
37 lines
990 B
Python
37 lines
990 B
Python
from troggle.expo.models import *
|
|
from django.contrib import admin
|
|
|
|
class RoleInline(admin.TabularInline):
|
|
model = PersonRole
|
|
extra = 4
|
|
|
|
class SurvexBlockAdmin(admin.ModelAdmin):
|
|
inlines = (RoleInline,)
|
|
|
|
class SurveyInline(admin.TabularInline):
|
|
model = ScannedImage
|
|
extra = 4
|
|
|
|
class SurveyAdmin(admin.ModelAdmin):
|
|
inlines = (SurveyInline,)
|
|
|
|
admin.site.register(Photo)
|
|
admin.site.register(Cave)
|
|
admin.site.register(Area)
|
|
admin.site.register(OtherCaveName)
|
|
admin.site.register(CaveAndEntrance)
|
|
admin.site.register(SurveyStation)
|
|
admin.site.register(Entrance)
|
|
admin.site.register(SurvexBlock, SurvexBlockAdmin)
|
|
admin.site.register(Expedition)
|
|
admin.site.register(Person)
|
|
admin.site.register(PersonRole)
|
|
admin.site.register(PersonExpedition)
|
|
admin.site.register(Role)
|
|
admin.site.register(LogbookEntry)
|
|
admin.site.register(PersonTrip)
|
|
admin.site.register(QM)
|
|
admin.site.register(Survey, SurveyAdmin)
|
|
admin.site.register(ScannedImage)
|
|
|