kopia lustrzana https://github.com/longclawshop/longclaw
18 wiersze
452 B
Python
18 wiersze
452 B
Python
from wagtail.contrib.modeladmin.options import (
|
|
ModelAdmin, modeladmin_register
|
|
)
|
|
from longclaw.shipping.models import ShippingRate
|
|
|
|
|
|
class ShippingRateModelAdmin(ModelAdmin):
|
|
model = ShippingRate
|
|
menu_label = 'Shipping'
|
|
menu_order = 200
|
|
menu_icon = 'site'
|
|
add_to_settings_menu = False
|
|
exclude_from_explorer = True
|
|
list_display = ('name', 'rate', 'carrier', 'description')
|
|
|
|
|
|
modeladmin_register(ShippingRateModelAdmin)
|