def get_dict(self): return { "id": self.id, "price_type": self.price_type.get_dict(), "start": helpers.string_from_date(self.start, u"short2") if self.start else False, "finish": helpers.string_from_date(self.finish, u"short2") if self.finish else False, "value": float(self.value) }
def get_dict(self): return { "id": self.id, "construction": self.construction.get_dict() if self.construction else False, "status": self.status.get_dict() if self.status else False, "artwork": self.artwork.get_dict() if self.artwork else False, "partner_organization": self.partner_organization.get_dict() if self.partner_organization else False, "contact_person": self.contact_person.get_dict() if self.contact_person else False, "start": helpers.string_from_date(self.start, u"short2") if self.start else False, "finish": helpers.string_from_date(self.finish, u"short2") if self.finish else False }
def get_dict(self): return { "id": self.id, "name": self.name, "place": self.place if self.place else u"", "client": self.client.get_dict() if self.client else False, "image": self.image if self.image else u"", "start": helpers.string_from_date(self.start, u"short2") if self.start else False, "finish": helpers.string_from_date(self.finish, u"short2") if self.finish else False, "action_date": helpers.string_from_date(self.action_date, u"short2") if self.action_date else False }
def get_dict(self): return { "id": self.id, "date": helpers.string_from_date(self.date, u"short2") if self.date else False, "number": self.number, "payer": self.payer.get_dict(), "receiver": self.receiver.get_dict() if self.receiver else False, "total": float(self.total) }
def get_dict(self): return { "id": self.id, "date": helpers.string_from_date(self.date, u"short2") if self.date else False, "partner": self.partner.get_dict() if self.partner else False, "artwork": self.artwork.get_dict() if self.artwork else False, "size": self.size.get_dict() if self.size else False, "price_type": self.price_type.get_dict() if self.price_type else False, "print_type": self.print_type.get_dict() if self.print_type else False, "material": self.material.get_dict() if self.material else False, "amount": self.amount.get_dict() if self.amount else False }
def get_dict(self): return { "id": self.id, "date": helpers.string_from_date(self.date, u"short2") if self.date else False, "number": self.number }