diff --git a/novaposhta/admin.py b/novaposhta/admin.py index 7ca7a59..160018f 100644 --- a/novaposhta/admin.py +++ b/novaposhta/admin.py @@ -4,8 +4,9 @@ from novaposhta.models import Warehouse -@admin.register(Warehouse) class WarehouseAdmin(admin.ModelAdmin): list_display = ('title', 'address', ) search_fields = ('title', 'address', ) + +admin.site.register(Warehouse, WarehouseAdmin) \ No newline at end of file