Fix exporting to work with django 1.4