def save(self, *args, **kwargs):
if '<STR_LIT>' not in self.shortcuts:<EOL><INDENT>self.shortcuts['<STR_LIT>'] = self.device.node<EOL><DEDENT>if '<STR_LIT:user>' not in self.shortcuts and self.device.node.user:<EOL><INDENT>self.shortcuts['<STR_LIT:user>'] = self.device.node.user<EOL><DEDENT>if '<STR_LIT>' not in self.shortcuts and '<STR_LIT>' in settings.INSTALLED_APPS:<EOL><INDENT>self.shortcuts['<STR_LIT>'] = self.device.node.layer<EOL><DEDENT>super(Interface, self).save(*args, **kwargs)<EOL>
Custom save method does the following:
    * save shortcuts if HSTORE is enabled