예제 #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
파일: admin.py 프로젝트: ojagodzinski/ralph
 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)