2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

reanem tunnelcontains to dwgcontains

This commit is contained in:
Philip Sargent 2021-04-26 18:54:17 +01:00
parent 72df5d5213
commit 7dd5840353
3 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@ class DrawingFile(models.Model):
bfontcolours = models.BooleanField(default=False) # UNUSED now, can be deleted bfontcolours = models.BooleanField(default=False) # UNUSED now, can be deleted
manyscansfolders = models.ManyToManyField("Wallet") # implicitly links via folders to scans to SVX files manyscansfolders = models.ManyToManyField("Wallet") # implicitly links via folders to scans to SVX files
scans = models.ManyToManyField("SingleScan") # implicitly links via scans to SVX files scans = models.ManyToManyField("SingleScan") # implicitly links via scans to SVX files
tunnelcontains = models.ManyToManyField("DrawingFile") # case when its a frame type dwgcontains = models.ManyToManyField("DrawingFile") # case when its a frame type
filesize = models.IntegerField(default=0) filesize = models.IntegerField(default=0)
npaths = models.IntegerField(default=0) npaths = models.IntegerField(default=0)
survexfiles = models.ManyToManyField("SurvexFile") # direct link to SVX files - not populated yet survexfiles = models.ManyToManyField("SurvexFile") # direct link to SVX files - not populated yet

View File

@ -156,7 +156,7 @@ def find_tunnel_scan(dwgfile, path):
print(message) print(message)
DataIssue.objects.create(parser='Tunnel', message=message) DataIssue.objects.create(parser='Tunnel', message=message)
rdwgfile = rdwgfilel[0] rdwgfile = rdwgfilel[0]
dwgfile.tunnelcontains.add(rdwgfile) dwgfile.dwgcontains.add(rdwgfile)
dwgfile.save() dwgfile.save()

View File

@ -29,7 +29,7 @@
</td> </td>
<td style="padding:2px"> <td style="padding:2px">
{% for rdwgfile in dwgfile.tunnelcontains.all %} {% for rdwgfile in dwgfile.dwgcontains.all %}
<a href="{% url "dwgfilesingle" rdwgfile.dwgpath %}">{{rdwgfile.dwgpath}}</a> <a href="{% url "dwgfilesingle" rdwgfile.dwgpath %}">{{rdwgfile.dwgpath}}</a>
{% endfor %} {% endfor %}
</td> </td>