'Django Leaflet: Add form fields for latitude and longitude

I am using the django-leaflet package to display the map in the django admin for a PointField. However, I wanted to put fields so that it would be possible to write the latitude and longitude, as an alternative to selecting the point on the map.

How can I add these fields to the form?

Note: the Django Map Widgets package has the ability to insert coordinates, but I don't want to use it because it requires a key.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source