Exemplo n.º 1
0
 def __unicode__(self):
     return inttoip(self.ip)#}}}
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     super(IPBanAdminForm, self).__init__(*args, **kwargs)
     if self.initial.get('ip'):
         self.initial['ip'] = inttoip(self.initial['ip'])