Ошибка при запросе User.history.all ()

У меня есть модель класса User (AbstractUser), я хотел бы отслеживать историю пользователя, у меня есть ошибка при получении User.history.all (),

ОШИБКА: таблица "core_user" отсутствует в предложении FROM LINE 1: SELECT "core_user". "Id", "core_user". "Password", "core_user" ...

SELECT "core_user". "id", "core_user". "password", "core_user". "last_login", ' ' "core_user". "is_superuser", "core_user". "username", ' ' "core_user". "first_name", "core_user". "last_name", "core_user". "email", ' ' "core_user". "is_staff", "core_user". "is_active", "core_user". "date_joined", ' ' "core_user". "editor_config", "dib_page_historicaluser". "ip_address", ' ' "dib_page_historicaluser". "history_id", ' ' "dib_page_historicaluser". "history_date", ' ' "dib_page_historicaluser". "history_change_reason", ' ' "dib_page_historicaluser". "history_type", ' ' "dib_page_historicaluser". "history_user_id" FROM "dib_page_historicaluser" ' 'ORDER BY "dib_page_historicaluser". "history_date" DESC, ' ' "dib_page_historicaluser". "history_id" DESC LIMIT 21')

таблица core_user это моя base_model, таблица dib_page_historicaluser это history model, кто знает, подскажите в чем проблема, я новичок

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