mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-04-03 09:21:48 +01:00
remove NewSubCave
This commit is contained in:
parent
c65544a377
commit
2a0aee5bf5
@ -6,7 +6,7 @@ from django.core import serializers
|
|||||||
|
|
||||||
from troggle.core.views_other import downloadLogbook
|
from troggle.core.views_other import downloadLogbook
|
||||||
from troggle.core.models import Person, PersonExpedition, Expedition, DataIssue
|
from troggle.core.models import Person, PersonExpedition, Expedition, DataIssue
|
||||||
from troggle.core.models_caves import Cave, Area, Entrance, CaveAndEntrance, NewSubCave, OtherCaveName, CaveDescription, LogbookEntry, PersonTrip, QM
|
from troggle.core.models_caves import Cave, Area, Entrance, CaveAndEntrance, OtherCaveName, CaveDescription, LogbookEntry, PersonTrip, QM
|
||||||
from troggle.core.models_survex import SurvexBlock, SurvexPersonRole, SurvexStation, ScansFolder, SingleScan
|
from troggle.core.models_survex import SurvexBlock, SurvexPersonRole, SurvexStation, ScansFolder, SingleScan
|
||||||
|
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ class EntranceAdmin(TroggleModelAdmin):
|
|||||||
admin.site.register(Cave, CaveAdmin)
|
admin.site.register(Cave, CaveAdmin)
|
||||||
admin.site.register(Area)
|
admin.site.register(Area)
|
||||||
admin.site.register(CaveAndEntrance)
|
admin.site.register(CaveAndEntrance)
|
||||||
admin.site.register(NewSubCave)
|
#admin.site.register(NewSubCave)
|
||||||
admin.site.register(CaveDescription)
|
admin.site.register(CaveDescription)
|
||||||
admin.site.register(Entrance, EntranceAdmin)
|
admin.site.register(Entrance, EntranceAdmin)
|
||||||
admin.site.register(SurvexBlock, SurvexBlockAdmin)
|
admin.site.register(SurvexBlock, SurvexBlockAdmin)
|
||||||
|
@ -365,7 +365,7 @@ class CaveDescription(TroggleModel):
|
|||||||
short_name = models.CharField(max_length=50, unique = True)
|
short_name = models.CharField(max_length=50, unique = True)
|
||||||
long_name = models.CharField(max_length=200, blank=True, null=True)
|
long_name = models.CharField(max_length=200, blank=True, null=True)
|
||||||
description = models.TextField(blank=True,null=True)
|
description = models.TextField(blank=True,null=True)
|
||||||
linked_subcaves = models.ManyToManyField("NewSubCave", blank=True)
|
#linked_subcaves = models.ManyToManyField("NewSubCave", blank=True)
|
||||||
linked_entrances = models.ManyToManyField("Entrance", blank=True)
|
linked_entrances = models.ManyToManyField("Entrance", blank=True)
|
||||||
linked_qms = models.ManyToManyField("QM", blank=True)
|
linked_qms = models.ManyToManyField("QM", blank=True)
|
||||||
|
|
||||||
@ -390,10 +390,10 @@ class CaveDescription(TroggleModel):
|
|||||||
TroggleModel.save()
|
TroggleModel.save()
|
||||||
#super(CaveDescription, self).save() # fails in python 3.8, OK in python 3.5
|
#super(CaveDescription, self).save() # fails in python 3.8, OK in python 3.5
|
||||||
|
|
||||||
class NewSubCave(TroggleModel):
|
# class NewSubCave(TroggleModel):
|
||||||
name = models.CharField(max_length=200, unique = True)
|
# name = models.CharField(max_length=200, unique = True)
|
||||||
def __str__(self):
|
# def __str__(self):
|
||||||
return str(self.name)
|
# return str(self.name)
|
||||||
|
|
||||||
class LogbookEntry(TroggleModel):
|
class LogbookEntry(TroggleModel):
|
||||||
"""Single parsed entry from Logbook
|
"""Single parsed entry from Logbook
|
||||||
|
Loading…
x
Reference in New Issue
Block a user