Python Forum
How to iterate a PlainLocationField object and fetch some values?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to iterate a PlainLocationField object and fetch some values?
#10
  @property
  def longitude(self):
      if not self.location:
          return

      return self.location.split(',')[1]
And then
class_instance.longitude
?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: How to iterate a PlainLocationField object and fetch some values? - by wavic - Jun-21-2018, 08:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Printing out incidence values for Class Object SquderDragon 3 372 Apr-01-2024, 07:52 AM
Last Post: SquderDragon
  AttributeError: 'list' object has no attribute 'values' ilknurg 4 15,238 Jan-19-2022, 08:33 AM
Last Post: menator01
  Object already contains values when created Stef 4 2,449 Aug-20-2020, 09:42 AM
Last Post: Stef
  How does a single object see all the values inside it? jenniferruurs 1 1,884 Oct-01-2019, 04:57 PM
Last Post: stullis
  Unable to fetch Outlook Mail body pramodb35 0 4,196 Jul-25-2018, 07:08 AM
Last Post: pramodb35
  Regular expression to fetch comments in C using Python pikkip 4 4,957 Jan-24-2017, 09:21 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020