fix for old versions of geodjango