class Store(models.Model): postal_code = models.CharField(max_length=6) address = models.TextField() location = PlainLocationField(based_fields=['address'], zoom=7, null=True) phone = models.CharField(max_length=60, blank=True, null=True) latitude = models.FloatField() longitude = models.FloatField() class Meta: managed = False db_table = 'store'class StoreAdmin(admin.ModelAdmin):
list_display = ('postal_code', 'address','phone', 'latitude', 'longitude')
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2c6cc9f6-1455-439c-ad78-459fcc1828ab%40googlegroups.com.
Hi Prateek.You're using Google Maps for the lat/long, right?In this case, I'd suggest that, on the function you receive the data and update the field, you also make a request to some URL to update the lat/long of the current displayed object.
On Thu, Jun 21, 2018 at 9:29 AM, prateek gupta <gupt...@gmail.com> wrote:
Got it Jason, I will not post anymore now.
On Thursday, June 21, 2018 at 5:31:13 PM UTC+5:30, Jason wrote:You've been posting here about this regularly (at least four times) with no responses. I don't think anyone here knows how to solve your problem. what else have you looked at? eg, have you asked on stack overflow or other places?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2c6cc9f6-1455-439c-ad78-459fcc1828ab%40googlegroups.com.
Based on the information of that project, it does not support Django passed version 1.10. What version are you using?
Saving of the location should be automatic based on my understanding of that package.
You may want to contact the author of that package to get more help.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b4c346b2-1032-485e-8b96-d1131dcfcc06%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c453ba82-7e0a-4fc1-8c8e-0a588b857627%40googlegroups.com.
To post to this group, send email to djang...@googlegroups.com.
Prateek,
Have you tried this module? http://django-map-widgets.readthedocs.io/en/latest/
Thanks
Himanshu
Sent from Mail for Windows 10
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fd219fe9-892c-4061-930b-6e8b22849b32%40googlegroups.com.