def get_extra_data(self): """ Return extra data that was saved """ if not self.extra_data: return {} else: return json.loads(self.extra_data)