def __init__(self, *args, **kwargs):
        # reduce the given fields to what the model actually can consume
        all_field_names = self._meta.get_all_field_names()
        model_kwargs = {k: v for k, v in kwargs.items() if k in all_field_names}
        super(BaseCartItem, self).__init__(*args, **model_kwargs)
        self.extra_rows = OrderedDict()
        self._dirty = True
dataset/ETHPy150Open awesto/django-shop/shop/models/cart.py/BaseCartItem.__init__/original