summaryrefslogtreecommitdiffstats
path: root/parsers/people.py
diff options
context:
space:
mode:
authorexpo <expo@seagrass.goatchurch.org.uk>2009-08-29 18:08:55 +0100
committerexpo <expo@seagrass.goatchurch.org.uk>2009-08-29 18:08:55 +0100
commit29adaa03c6809169411b5f2cc8a11a3b5c25d1f2 (patch)
treee6398a1efe531633a3a954d8cab3254c375c204b /parsers/people.py
parent9f169fb2b9f7338863b6b5fabc50e549e2ff96de (diff)
downloadtroggle-29adaa03c6809169411b5f2cc8a11a3b5c25d1f2.tar.gz
troggle-29adaa03c6809169411b5f2cc8a11a3b5c25d1f2.tar.bz2
troggle-29adaa03c6809169411b5f2cc8a11a3b5c25d1f2.zip
get rid of photo
Diffstat (limited to 'parsers/people.py')
-rw-r--r--parsers/people.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/people.py b/parsers/people.py
index fd269e6..7898ccd 100644
--- a/parsers/people.py
+++ b/parsers/people.py
@@ -11,14 +11,14 @@ def saveMugShot(mugShotPath, mugShotFilename, person):
else:
mugShotFilename=mugShotFilename # just in case one doesn't
- dummyObj=models.Photo(file=mugShotFilename)
+ dummyObj=models.DPhoto(file=mugShotFilename)
#Put a copy of the file in the right place. mugShotObj.file.path is determined by the django filesystemstorage specified in models.py
if not os.path.exists(dummyObj.file.path):
shutil.copy(mugShotPath, dummyObj.file.path)
mugShotObj, created = save_carefully(
- models.Photo,
+ models.DPhoto,
lookupAttribs={'is_mugshot':True, 'file':mugShotFilename},
nonLookupAttribs={'caption':"Mugshot for "+person.first_name+" "+person.last_name}
)