def __init__(self, customer_id, *args, **kwargs): db.Model.__init__(self) HistoryMixin.__init__(self) super(self.__class__, self).__init__(**kwargs) self.id = customer_id self.moteur_id = current_user.id self.added_via = 'api'
def __init__(self, customer_id, *args, **kwargs): db.Model.__init__(self) HistoryMixin.__init__(self) super(self.__class__, self).__init__(**kwargs) self.id = customer_id self.operateur_id = current_user.id self.nb_sanctions = 0 self.added_via = 'api'
def __init__(self, *args, **kwargs): db.Model.__init__(self) HistoryMixin.__init__(self) kwargs['id'] = kwargs.get('id', None) if not kwargs['id']: kwargs['id'] = str(get_short_uuid()) super(self.__class__, self).__init__(**kwargs) HistoryMixin.__init__(self) TaxiRedis.__init__(self, self.id)
def __init__(self, vehicle_id, added_by): db.Model.__init__(self) HistoryMixin.__init__(self) self.vehicle_id = vehicle_id self.added_by = added_by
def to_exclude(cls): return list(HistoryMixin.to_exclude()) + ['status']
def __init__(self, *args, **kwargs): self.id = str(get_short_uuid()) self.creation_datetime = datetime.now().isoformat() db.Model.__init__(self) HistoryMixin.__init__(self) super(self.__class__, self).__init__(**kwargs)
def __init__(self, *args, **kwargs): self.id = str(get_short_uuid()) self.creation_datetime = datetime.now() db.Model.__init__(self) HistoryMixin.__init__(self) super(self.__class__, self).__init__(**kwargs)
def __init__(self): db.Model.__init__(self) HistoryMixin.__init__(self)
def __init__(self, licence_plate=None): db.Model.__init__(self) HistoryMixin.__init__(self) if licence_plate: self.vehicle = licence_plate