Unable to override map_template in OSMGeoAdmin in django 1.11.3

2017-07-14 Thread Chew Kok Hoor (gMail)
Hi, I tried overriding the map template using bold line below: class LocationAdmin(geo_admin.OSMGeoAdmin): form = LocationForm map_template = 'gis/admin/google.html In my settings.py I have added my folder: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.Djang

Django 1.7 Raw Connections in TransactionManagement

2015-02-12 Thread Chew Kok Hoor (gMail)
Hi all, I am using: with transaction.atomic() And in the with block, sometimes I use django query like: models.Customer.objects.count() and sometimes I use cursor, example: with transaction.atomic(): count_customers = models.Customer.objects.cou