diff --git a/handbook/troggle/datamodel.html b/handbook/troggle/datamodel.html
index 2733d9d82..e97488450 100644
--- a/handbook/troggle/datamodel.html
+++ b/handbook/troggle/datamodel.html
@@ -15,7 +15,7 @@
(Click to enlarge)
-Several classes have been edited out of this file between then and 30 January 2023 as they have been deleted as troggle has been tidied up.
+Several classes have been edited out of this file between then and 6 September 2023 as they have been deleted as troggle has been tidied up.
All the classes below inherit from the django class (models.Model) and are thereby made persistent in the database. All persistent instance variables are defined with e.g. "models.BooleanField()" types which is why they look so strange to a normal python programmer.
See the online auto-documentation for the current set of core objects and their instance variables and foreign keys (anything below with "models.ForeignKey" in the type field is a foreign key.
This webpage is manually maintained and may be out of date.# This is an auto-generated Django model module.
@@ -221,17 +221,12 @@ from django.db import models
totalleglength = models.FloatField()
-class Survexdirectory(models.Model):
- id = models.IntegerField(primary_key =True) # AutoField?
- path = models.CharField(max_length=200)
- cave_id = models.IntegerField(blank=True, null=True)
- primarysurvexfile_id = models.IntegerField(blank=True, null=True)
-
-
class Survexfile(models.Model):
id = models.IntegerField(primary_key =True) # AutoField?
path = models.CharField(max_length=200)
- survexdirectory = models.ForeignKey (CoreSurvexdirectory, blank=True, null=True)
+ primary = models.ForeignKey (
+ "SurvexFile", related_name="primarysurvex", blank=True, null=True, on_delete=models.SET_NULL
+ )
cave_id = models.IntegerField(blank=True, null=True)