Skip to content

Instantly share code, notes, and snippets.

@EdwardIII
Created February 1, 2013 14:38
Show Gist options
  • Save EdwardIII/4691674 to your computer and use it in GitHub Desktop.
Save EdwardIII/4691674 to your computer and use it in GitHub Desktop.
def get_images(self):
"""
Convenience method, gets all images except primary image
Returns empty string if none can be found
"""
print "DBG2: In get_images"
image_collection = self.eventimage_set().filter(primary=False)
print "DBG3: %s" % image_collection
if image_collection:
return image_collection
else:
return ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment