It looks as if the __unicode__ method sometimes gets to deal with a cleaned self.mac_address, sometimes with a non-cleaned version. The solution is to make it cope with unicode or str versions of self.mac_address as well as the MAC object which it currently expects.
It looks as if the __unicode__ method sometimes gets to deal with a cleaned self.mac_address, sometimes with a non-cleaned version. The solution is to make it cope with unicode or str versions of self.mac_address as well as the MAC object which it currently expects.