def json(self): return { "id": self.id, "name": self.name, "created_at": datetime_browser_format(self.created_at), "updated_at": datetime_browser_format(self.updated_at) }
def json(self): return { "id": self.id, "email": self.email, "username": self.username(), "domain": self.domain.name, "domain_id": self.domain_id, "created_at": datetime_browser_format(self.created_at), "updated_at": datetime_browser_format(self.updated_at) }
def json(self): return { "id": self.id, "source": self.source, "destination": self.destination, "source_name": self.source_name(), "domain": self.domain.name, "domain_id": self.domain_id, "created_at": datetime_browser_format(self.created_at), "updated_at": datetime_browser_format(self.updated_at) }
def json_duration(self): return datetime_browser_format(datetime(1970, 1, 1, 0, 0, 0, 0) + self.duration)
def json_date(self): return datetime_browser_format(self.date)