From 65cebce1987b5a289e0eccde9b0a1d526c6385a1 Mon Sep 17 00:00:00 2001 From: expo Date: Sat, 29 Aug 2009 18:08:55 +0100 Subject: get rid of photo --- parsers/people.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parsers/people.py') 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} ) -- cgit v1.2.3