forked from expo/troggle
7aee3fb920
Photo model added. Logbook parser now puts mugshots in as photo models, and descriptions from the old folk html pages in as "blurbs" on the person model. Experimented with eye candy and a random logbook quote generator. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8094 by aaron @ 12/31/2008 2:59 AM
28 lines
757 B
Python
28 lines
757 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,)
|
|
|
|
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)
|
|
|