def save(self, *args, **kwargs):
self.host = self.host.strip()<EOL>if not self.id:<EOL><INDENT>self.device = self.__create_device()<EOL><DEDENT>if self.store is True:<EOL><INDENT>super(DeviceConnector, self).save(*args, **kwargs)<EOL><DEDENT>
Custom save does the following:
    * strip trailing whitespace from host attribute
    * create device and all other related objects
    * store connection config in DB if store attribute is True