Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin address preview #29

Closed
bashu opened this issue May 30, 2015 · 6 comments
Closed

Admin address preview #29

bashu opened this issue May 30, 2015 · 6 comments
Assignees

Comments

@bashu
Copy link
Owner

bashu commented May 30, 2015

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)

@bashu
Copy link
Owner Author

bashu commented May 30, 2015

The preview is currently static; you must enter the address and save it to get a preview. Does preview work after saving?


Original comment by: Mikhail Korobov

@bashu
Copy link
Owner Author

bashu commented May 30, 2015

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 :)


Original comment by: Sivan Greenberg

@bashu
Copy link
Owner Author

bashu commented May 30, 2015

(this is hte BEST django gmaps integration I've seen so far, I think we could add directions, pathway finding etc to it to make it ever better )


Original comment by: Sivan Greenberg

@bashu
Copy link
Owner Author

bashu commented May 30, 2015

Hi @sivang,
Thanks and sorry for a long delay!

I think address preview and other features mentioned may be added as client-side features. We may bundle some js files in static/easy_maps/ and make admin widget use them. This pull request may be of some interest for you: #2 - your feedback is also welcome!


Original comment by: Mikhail Korobov

@bashu
Copy link
Owner Author

bashu commented May 30, 2015

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.


Original comment by: samosx

@sivang
Copy link

sivang commented May 31, 2015

Thanks for the reply, I will try to take a look - boy it was long ago when
I wanted to use it :)

On Sat, May 30, 2015 at 11:34 AM, Basil Shubin notifications@github.com
wrote:

Hi @sivang https://github.com/sivang,
Thanks and sorry for a long delay!

I think address preview and other features mentioned may be added as
client-side features. We may bundle some js files in static/easy_maps/ and
make admin widget use them. This pull request may be of some interest for
you: #2 #2 - your

feedback is also welcome!

Original comment by: Mikhail Korobov


Reply to this email directly or view it on GitHub
#29 (comment)
.

@bashu bashu self-assigned this Oct 4, 2015
@bashu bashu closed this as completed Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants