Module Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore Call NameLoad Str keyword TupleLoad Str Str Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad keyword Call NameLoad Str keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad ClassDef bases body Assign NameStore NameLoad Assign NameStore Call NameLoad Str keyword TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Assign NameStore Call NameLoad keyword NameLoad keyword TupleLoad Str Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Assign NameStore Call NameLoad keyword Num keyword Num keyword Str keyword Str Assign NameStore Call NameLoad keyword Num keyword Num keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad ClassDef bases body Assign NameStore NameLoad Assign NameStore Call NameLoad Str keyword TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword TupleLoad Str Str Str keyword NameLoad keyword NameLoad ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore BinOpMod Call NameLoad Str Dict Str AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A logging rest_framework serializers oscarapi.utils overridable OscarModelSerializer OscarHyperlinkedModelSerializer DrillDownHyperlinkedIdentityField oscarapi.serializers.fields TaxIncludedDecimalField django.utils.translation ugettext _ oscar.core.loading get_model decimal Decimal N/A logger N/A N/A logging getLogger __name__ N/A Basket N/A get_model basket Basket N/A Line N/A get_model basket Line N/A LineAttribute N/A get_model basket LineAttribute N/A StockRecord N/A get_model partner StockRecord N/A Voucher N/A get_model voucher Voucher VoucherSerializer N/A OscarModelSerializer N/A Meta N/A N/A N/A model Voucher N/A fields N/A overridable OSCARAPI_VOUCHER_FIELDS default N/A name code start_datetime end_datetime N/A N/A OfferDiscountSerializer N/A N/A serializers Serializer N/A N/A description N/A N/A serializers CharField N/A name N/A N/A serializers CharField N/A amount N/A N/A serializers DecimalField decimal_places 2 max_digits 12 source discount N/A VoucherDiscountSerializer N/A OfferDiscountSerializer N/A N/A voucher N/A VoucherSerializer required False N/A BasketSerializer N/A N/A serializers HyperlinkedModelSerializer N/A N/A lines N/A N/A serializers HyperlinkedIdentityField view_name basket-lines-list N/A offer_discounts N/A OfferDiscountSerializer many True required False N/A total_excl_tax N/A N/A serializers DecimalField decimal_places 2 max_digits 12 required False N/A total_excl_tax_excl_discounts N/A N/A serializers DecimalField decimal_places 2 max_digits 12 required False N/A total_incl_tax N/A TaxIncludedDecimalField excl_tax_field total_excl_tax decimal_places 2 max_digits 12 required False N/A total_incl_tax_excl_discounts N/A TaxIncludedDecimalField excl_tax_field total_excl_tax_excl_discounts decimal_places 2 max_digits 12 required False N/A total_tax N/A TaxIncludedDecimalField excl_tax_value N/A Decimal 0.00 decimal_places 2 max_digits 12 required False N/A currency N/A N/A serializers CharField required False N/A voucher_discounts N/A VoucherDiscountSerializer many True required False Meta N/A N/A N/A model Basket N/A fields N/A overridable OSCARAPI_BASKET_FIELDS default N/A id owner status lines url total_excl_tax total_excl_tax_excl_discounts total_incl_tax total_incl_tax_excl_discounts total_tax currency voucher_discounts offer_discounts is_tax_known N/A get_validation_exclusions N/A N/A self instance N/A None N/A N/A 
        This is needed because oscar declared the owner field as ``null=True``,
        but ``blank=False``. That means the validator will claim you can not
        leave this value set to None.
         N/A N/A N/A N/A N/A super BasketSerializer self get_validation_exclusions instance N/A owner N/A N/A LineAttributeSerializer N/A OscarHyperlinkedModelSerializer N/A Meta N/A N/A N/A model LineAttribute N/A N/A BasketLineSerializer N/A OscarHyperlinkedModelSerializer N/A N/A 
    This serializer computes the prices of this line by using the basket
    strategy.
     N/A url N/A DrillDownHyperlinkedIdentityField view_name basket-line-detail extra_url_kwargs N/A basket_pk basket.id N/A attributes N/A LineAttributeSerializer many True fields N/A url option value required False N/A price_excl_tax N/A N/A serializers DecimalField decimal_places 2 max_digits 12 source line_price_excl_tax_incl_discounts N/A price_incl_tax N/A TaxIncludedDecimalField decimal_places 2 max_digits 12 excl_tax_field line_price_excl_tax_incl_discounts source line_price_incl_tax_incl_discounts N/A price_incl_tax_excl_discounts N/A TaxIncludedDecimalField decimal_places 2 max_digits 12 excl_tax_field line_price_excl_tax source line_price_incl_tax N/A price_excl_tax_excl_discounts N/A N/A serializers DecimalField decimal_places 2 max_digits 12 source line_price_excl_tax N/A warning N/A N/A serializers CharField read_only True required False source get_warning basket_pk N/A N/A self N/A N/A N/A N/A N/A N/A self kwargs get basket_pk N/A property Meta N/A N/A N/A model Line N/A fields N/A overridable OSCARAPI_BASKETLINE_FIELDS default N/A url product quantity attributes price_currency price_excl_tax price_incl_tax price_incl_tax_excl_discounts price_excl_tax_excl_discounts is_tax_known warning basket stockrecord date_created N/A N/A LineSerializer N/A N/A serializers HyperlinkedModelSerializer N/A N/A 
    This serializer just shows fields stored in the database for this line.
     N/A attributes N/A LineAttributeSerializer many True fields N/A url option value required False read_only True Meta N/A N/A N/A model Line N/A N/A StockRecordSerializer N/A N/A serializers ModelSerializer N/A Meta N/A N/A N/A model StockRecord N/A N/A VoucherAddSerializer N/A N/A serializers Serializer N/A N/A vouchercode N/A N/A serializers CharField max_length 128 required True validate N/A N/A self attrs N/A N/A N/A request N/A N/A N/A self context get request N/A N/A N/A voucher N/A N/A N/A Voucher objects get code N/A N/A attrs get vouchercode N/A N/A N/A N/A voucher is_active N/A N/A message N/A N/A _ The '%(code)s' voucher has expired N/A code N/A voucher code N/A N/A N/A serializers ValidationError message N/A N/A is_available message N/A N/A voucher is_available_to_user N/A request user N/A N/A is_available N/A N/A N/A N/A serializers ValidationError message N/A N/A N/A N/A Voucher DoesNotExist N/A N/A N/A N/A serializers ValidationError N/A _ Voucher code unknown N/A N/A self instance voucher N/A attrs N/A create N/A N/A self validated_data N/A N/A N/A N/A N/A N/A Voucher objects create validated_data N/A N/A