summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-01-28 21:00:38 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-01-28 21:00:38 +0000
commit0d9d30749080f6a4b6c72063434244110bd71fd7 (patch)
tree5ab1fc475ef720cfb21ff963a7610883b76d06d2 /core
parente6fd1f0ec54fa8ea0218d6ffb7ae3d1d99b4b7f8 (diff)
downloadtroggle-0d9d30749080f6a4b6c72063434244110bd71fd7.tar.gz
troggle-0d9d30749080f6a4b6c72063434244110bd71fd7.tar.bz2
troggle-0d9d30749080f6a4b6c72063434244110bd71fd7.zip
refactor to reduce db hits and fix *team
Diffstat (limited to 'core')
-rw-r--r--core/admin.py2
-rw-r--r--core/models/survex.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/core/admin.py b/core/admin.py
index c266a97..cfdeb22 100644
--- a/core/admin.py
+++ b/core/admin.py
@@ -19,6 +19,8 @@ In particular, it enables JSON export of any data with 'export_as_json'
and configures the search fields to be used within the control panel.
What is the search path for the css and js inclusions in the Media subclasses though ?!
+
+The page looks for /static/jquery/jquery.min.js
'''
class TroggleModelAdmin(admin.ModelAdmin):
diff --git a/core/models/survex.py b/core/models/survex.py
index 5ee3f17..97c6a3d 100644
--- a/core/models/survex.py
+++ b/core/models/survex.py
@@ -152,7 +152,7 @@ class SurvexPersonRole(models.Model):
personname = models.CharField(max_length=100)
person = models.ForeignKey('Person', blank=True, null=True,on_delete=models.SET_NULL)
personexpedition = models.ForeignKey('PersonExpedition', blank=True, null=True,on_delete=models.SET_NULL)
- persontrip = models.ForeignKey('PersonTrip', blank=True, null=True,on_delete=models.SET_NULL) # logbook
+ # persontrip = models.ForeignKey('PersonTrip', blank=True, null=True,on_delete=models.SET_NULL) # logbook thing not a survex thing
expeditionday = models.ForeignKey("ExpeditionDay", null=True,on_delete=models.SET_NULL)
def __str__(self):