Package telemeta :: Package models :: Module location :: Class Location
[hide private]
[frames] | no frames]

Class Location

source code

??-84 --+
        |
       Location

Locations

Nested Classes [hide private]
  Meta
Instance Methods [hide private]
 
items(self) source code
 
collections(self) source code
 
ancestors(self, direct=False) source code
 
descendants(self, direct=False) source code
 
apparented(self) source code
 
add_child(self, other) source code
 
add_parent(self, other) source code
 
countries(self) source code
 
continents(self) source code
 
__unicode__(self) source code
 
flatname(self) source code
 
paths(self) source code
 
fullnames(self) source code
Class Variables [hide private]
  OTHER_TYPE = 0
  CONTINENT = 1
  COUNTRY = 2
  TYPE_CHOICES = COUNTRY, _('country'), (CONTINENT, _('continent...
  name = CharField(_('name'), unique= True, max_length= 150, req...
  type = IntegerField(_('type'), choices= TYPE_CHOICES, default=...
  complete_type = ForeignKey('LocationType', related_name= "loca...
  current_location = WeakForeignKey('self', related_name= "past_...
  latitude = FloatField(null= True)
  longitude = FloatField(null= True)
  is_authoritative = BooleanField(_('authoritative'))
  objects = LocationManager()
Class Variable Details [hide private]

TYPE_CHOICES

Value:
COUNTRY, _('country'), (CONTINENT, _('continent')), (OTHER_TYPE, _('ot\
her'))

name

Value:
CharField(_('name'), unique= True, max_length= 150, required= True)

type

Value:
IntegerField(_('type'), choices= TYPE_CHOICES, default= OTHER_TYPE, db\
_index= True)

complete_type

Value:
ForeignKey('LocationType', related_name= "locations", verbose_name= _(\
'complete type'))

current_location

Value:
WeakForeignKey('self', related_name= "past_names", verbose_name= _('cu\
rrent location'))