2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 21:37:07 +00:00

quick hack to make work in django1.0 Photo to DPhoto

This commit is contained in:
goatchurch
2009-08-23 23:29:05 +01:00
parent c66b5e2dad
commit 0ea70273fe
6 changed files with 12 additions and 11 deletions

View File

@@ -531,7 +531,7 @@ class QM(TroggleModel):
return u"%s%s%s" % ('[[QM:',self.code(),']]')
photoFileStorage = FileSystemStorage(location=settings.PHOTOS_ROOT, base_url=settings.PHOTOS_URL)
class Photo(TroggleImageModel):
class DPhoto(TroggleImageModel):
caption = models.CharField(max_length=1000,blank=True,null=True)
contains_logbookentry = models.ForeignKey(LogbookEntry,blank=True,null=True)
contains_person = models.ManyToManyField(Person,blank=True,null=True)