mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
[svn] Added survex persons to admin site
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8078 by julian @ 11/8/2008 11:24 PM
This commit is contained in:
parent
f02b288e4b
commit
5757df28a1
@ -1,16 +1,26 @@
|
||||
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(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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user