def save(self, *args, **kwargs):
self.protocol = '<STR_LIT>' % self.address.version<EOL>super(Ip, self).save(*args, **kwargs)<EOL>
Determines ip protocol version automatically.
Stores address in interface shortcuts for convenience.