Ejemplo n.º 1
0
 def get_postcode_display(self):
     if hasattr(countries, "get_postcode_display"):
         return countries.get_postcode_display(self.postcode)
     return self.postcode
Ejemplo n.º 2
0
 def get_postcode_display(self):
     if hasattr(countries, 'get_postcode_display'):
         return countries.get_postcode_display(self.postcode)
     return self.postcode