handle different postgis setup based on django version