def ownerInfo(self): if self._ownerInfo is None: self._ownerInfo = getJidInfo(dtalkXdg.OWNER_JID) return self._ownerInfo
def on_post_save(self, instance, *args, **kwargs): if instance.isSelf: self.ownerInfo = getJidInfo(instance)
def getJidInfo(self, jid): return getJidInfo(jid)