示例#1
0
 def get_country_display_english(self):
     """Displays the country of origin in its English form. This is useful
     for distionary lookups."""
     return Country.raw_from_id(self.country)
示例#2
0
 def country(self):
     return Country.raw_from_id(self.profile.country)
示例#3
0
文件: models.py 项目: ambv/kitdjango
 def get_country_display_english(self):
     """Displays the country of origin in its English form. This is useful
     for distionary lookups."""
     return Country.raw_from_id(self.country)