Source

django-easy-maps / easy_maps / admin.py

Full commit
from django.contrib import admin

class AddressAdmin(admin.ModelAdmin):
    list_display = ['address', 'computed_address', 'latitude', 'longitude', 'geocode_error']
    list_filter = ['geocode_error']
    search_fields = ['address']

    change_form_template = 'admin/easy_maps/easy_maps_change_form.html'

    def change_view(self, request, object_id, extra_context=None):
        my_context = {
            'address_instance': self.model.objects.get(id=object_id),
        }
        return super(AddressAdmin, self).change_view(request, object_id,
                                                     extra_context=my_context)