I have a model using the GeoIP library to render the country of the IP address for that record:
class PageIP(models.Model):
"""
Detail of page
"""
ip_address = models.IPAddressField(blank=True,verbose_name="IP Address")
def _client_country(self):
g = GeoIP()
return g.country(self.ip_address)
client_country = property(_client_country)
Is there any way to show this property (client_country) in the Django 1.1 admin? As currently written, this doesn't appear in the admin.
Cheers.