diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:56:56 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:56:56 +0100 |
commit | 4b34241a16af5e9cbfff0c3b2ede76394e94a3b5 (patch) | |
tree | 35eb3ddd5d40401e5149036c06a31620bd7a9417 /parsers/logbooks.py | |
parent | e9cc5094b90b605fca115835294999fba5e79aac (diff) | |
download | troggle-4b34241a16af5e9cbfff0c3b2ede76394e94a3b5.tar.gz troggle-4b34241a16af5e9cbfff0c3b2ede76394e94a3b5.tar.bz2 troggle-4b34241a16af5e9cbfff0c3b2ede76394e94a3b5.zip |
[svn] Added new abstract base class TroggleModel. Any fields or methods that need to be added to multiple models should be added here.
Added edit links to caves, people, logbook entries, and people.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8260 by aaron @ 2/26/2009 5:28 AM
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 9c5a057..c2c46a4 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -252,7 +252,6 @@ def SetDatesFromLogbookEntries(expedition): persontrips = personexpedition.persontrip_set.order_by('date')
personexpedition.date_from = min([persontrip.date for persontrip in persontrips] or [None])
personexpedition.date_to = max([persontrip.date for persontrip in persontrips] or [None])
- personexpedition.dates_guessed = True
personexpedition.save()
# The below is all unnecessary, just use the built in get_previous_by_date and get_next_by_date
@@ -269,7 +268,6 @@ def SetDatesFromLogbookEntries(expedition): # from trips rather than logbook entries, which may include events outside the expedition
expedition.date_from = min([personexpedition.date_from for personexpedition in expedition.personexpedition_set.all() if personexpedition.date_from] or [None])
expedition.date_to = max([personexpedition.date_to for personexpedition in expedition.personexpedition_set.all() if personexpedition.date_to] or [None])
- expedition.dates_guessed = True
expedition.save()
# The below has been replaced with the methods get_next_by_id and get_previous_by_id
|