Hey Dheeraj, Thanks!

You can create a calculated field in the admin like this:

def point_display(self, obj):
return '{}/{}'.format(obj.point.lat, obj.point.lon)

(not sure about the getter for the lat / lon but you get the point).

Then add the field to read_only_field. After you’ve done that you can handle the field as a regular model field (you can add to list_inline and fieldsets).

Hope this helps,


Written by

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store