forked from expo/troggle
Renaming class step 2
This commit is contained in:
@@ -6,7 +6,7 @@ from django.http import HttpResponse
|
||||
|
||||
from troggle.core.models.caves import (Area, Cave, CaveAndEntrance,
|
||||
Entrance)
|
||||
from troggle.core.models.logbooks import (QM, LogbookEntry, PersonTrip)
|
||||
from troggle.core.models.logbooks import (QM, LogbookEntry, PersonLogEntry)
|
||||
from troggle.core.models.survex import (DrawingFile, SingleScan, SurvexBlock,
|
||||
SurvexDirectory, SurvexFile,
|
||||
SurvexPersonRole, SurvexStation)
|
||||
@@ -53,8 +53,8 @@ class QMsFoundInline(admin.TabularInline):
|
||||
extra=1
|
||||
|
||||
|
||||
class PersonTripInline(admin.TabularInline):
|
||||
model = PersonTrip
|
||||
class PersonLogEntryInline(admin.TabularInline):
|
||||
model = PersonLogEntry
|
||||
raw_id_fields = ('personexpedition',)
|
||||
extra = 1
|
||||
|
||||
@@ -63,7 +63,7 @@ class LogbookEntryAdmin(TroggleModelAdmin):
|
||||
prepopulated_fields = {'slug':("title",)}
|
||||
search_fields = ('title','expedition__year')
|
||||
date_heirarchy = ('date')
|
||||
inlines = (PersonTripInline, QMsFoundInline)
|
||||
inlines = (PersonLogEntryInline, QMsFoundInline)
|
||||
class Media:
|
||||
css = {
|
||||
"all": ("css/troggleadmin.css",) # this does not exist
|
||||
|
||||
Reference in New Issue
Block a user