Fix build errors on django < 1.4
Fix build errors on django < 1.4

disqus/gargoyle,roverdotcom/gargoyle,roverdotcom/gargoyle,zapier/gargoyle,frewsxcv/gargoyle,YPlan/gargoyle,Raekkeri/gargoyle,Raekkeri/gargoyle,blueprinthealth/gargoyle,Raekkeri/gargoyle,roverdotcom/gargoyle,nkovshov/gargoyle,disqus/gargoyle,brilliant-org/gargoyle,nkovshov/gargoyle,vikingco/gargoyle,zapier/gargoyle,disqus/gargoyle,YPlan/gargoyle,frewsxcv/gargoyle,brilliant-org/gargoyle,monokrome/gargoyle,blueprinthealth/gargoyle,monokrome/gargoyle,nkovshov/gargoyle,vikingco/gargoyle,vikingco/gargoyle,monokrome/gargoyle,YPlan/gargoyle,brilliant-org/gargoyle,blueprinthealth/gargoyle,frewsxcv/gargoyle