Permalink
Browse files

added related_name to some fields to avoid django errors

  • Loading branch information...
1 parent 1750398 commit a999470d5836bb550d930032253b52ef245f62c5 @trey0 trey0 committed Nov 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 geocamLens/models.py
View
@@ -160,7 +160,8 @@ class Image(coreModels.PointFeature):
# image.
snapshot_set = generic.GenericRelation(Snapshot,
content_type_field='imgType',
- object_id_field='imgId')
+ object_id_field='imgId',
+ related_name='%(app_label)s_%(class)s_set')
viewerExtension = '.jpg'

0 comments on commit a999470

Please sign in to comment.