summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:24:37 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:24:37 +0100
commit8c818906b5c1228a6fb411cb96d1bd5f1663b49a (patch)
tree29e5d099b102f2a61fe40288fc5415ba8bf8e70e /databaseReset.py
parent1d8f647699a3f5f489f46dba595e03fc613cb4e3 (diff)
downloadtroggle-8c818906b5c1228a6fb411cb96d1bd5f1663b49a.tar.gz
troggle-8c818906b5c1228a6fb411cb96d1bd5f1663b49a.tar.bz2
troggle-8c818906b5c1228a6fb411cb96d1bd5f1663b49a.zip
[svn] Added QM model and parser. Had to merge models_cave.py and models_logbooks.py into models.py. This is because logbook entries now have an optional foreign key to caves, and QMs have a required foreign key to a logbook entry of the trip that created them. So, the two files became circularly dependent.
Also, the urls for the person model now allow lookups using their actual first and last name in the url instead of the primary key. We should do similar things for all models, maybe even using the url as a search which results in a page with multiple model instance results if the input is ambiguous (e.g. they only enter a first name). Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8093 by aaron @ 12/13/2008 11:17 PM
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/databaseReset.py b/databaseReset.py
index 7c3160c..212c590 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -17,6 +17,7 @@ user.is_staff = True
user.is_superuser = True
user.save()
+import parsers.logbooks
import parsers.cavetab
-import parsers.survex
-import parsers.logbooks
+import parsers.QMs
+import parsers.survex