Created
February 1, 2013 14:38
-
-
Save EdwardIII/4691674 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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