ModuleNotFoundError: No module named 'wagtail.contrib.modeladmin' when i try to write "wagtail.contrib.modeladmin' on base.py file it rise this error

from django.contrib import admin from .models import Subscribers

@admin.register(Subscribers) class SubscriberAdmin(admin.ModelAdmin): """Admin configuration for Subscribers."""

model = Subscribers
menu_label = "Subscribers"
menu_icon = "placeholder"
menu_order = 290
add_to_settings_menu = False
exclude_from_explorer = False
list_display = ("email", "full_name",)
search_fields = ("email", "full_name",)

this was my admin.py file

Вернуться на верх