Merge pull request #4 from MichalMaM/master

added CachedForeignKey for gallery
added raw_id_field for photo in gallery item
Merge remote-tracking branch 'upstream/master'