You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910
  1. from django.contrib import admin
  2. from oscar.core.loading import import_module
  3. models = import_module('shipping.models', ['OrderAndItemLevelChargeMethod'])
  4. class MethodAdmin(admin.ModelAdmin):
  5. exclude = ('code',)
  6. list_display = ('name', 'description', 'price_per_order', 'price_per_item', 'free_shipping_threshold')
  7. admin.site.register(models.OrderAndItemLevelChargeMethod, MethodAdmin)