1. Mikhail Korobov
  2. django-easy-maps
Issue #11 new

Admin address preview

nim4n
created an issue

hi. I installed easy map but I can't see the address preview in admin. am i missed something? my admin.py is:

from django import forms

from django.contrib import admin

from easy_maps.widgets import AddressWithMapWidget

from .models import Address

class AddressAdmin(admin.ModelAdmin):

class form(forms.ModelForm):

    class Meta:

        widgets = {

            'address': AddressWithMapWidget({'class': 'vTextField'})

        }

admin.site.register(Address, AddressAdmin)

Comments (9)

  1. Sivan Greenberg

    Hi MIkhail, this is rather cool and amazing, what would be the preferred way by you to add address preview before saving an address? this is a feature I really need, don't mind iumplementing it with you guidance :)

  2. samosx

    I also didn't get to see anything after enabling the field, the problem is that the geocoder returns an error because it doesn't know the address.

    My understanding was that using the admin I could manually correct the address, but this doesn't seem the case right? Any chance to get these in? Else I may work on this.

  3. Log in to comment