Похожие чаты

Web

| sys:1: SAWarning: relationship 'Event.accounts' will copy column accounts.id to column account_event_association.account_id, which conflicts with relationship(s): 'Account.event_associations' (copies accounts.id to account_event_association.account_id), 'AccountEventAssociation.account' (copies accounts.id to account_event_association.account_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="account,event_associations"' to the 'Event.accounts' relationship. (Background on this warning at: https://sqlalche.me/e/20/qzyx) (This warning originated from the `configure_mappers()` process, which was invoked automatically in response to a user-initiated operation.)
web | sys:1: SAWarning: relationship 'Event.account_associations' will copy column events.id to column account_event_association.event_id, which conflicts with relationship(s): 'Account.events' (copies events.id to account_event_association.event_id), 'Event.accounts' (copies events.id to account_event_association.event_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="accounts,events"' to the 'Event.account_associations' relationship. (Background on this warning at: https://sqlalche.me/e/20/qzyx) (This warning originated from the `configure_mappers()` process, which was invoked automatically in response to a user-initiated operation.)
у меня выскакивают такие варнинги, которые говорят, что можно добавить overlaps или viewonly, когда я добавляю overlaps, то все действительно исчезает, это костыль или так можно делать? Как избежать этих варнингов?
я делал все как по доке указано
https://docs.sqlalchemy.org/en/20/orm/basic_relationships.html#combining-association-object-with-many-to-many-access-patterns

может есть что-то, что можно поменять?

1 ответов

13 просмотров

Чел, это стену никто читать не будет. Либо выдели главное, либо залей хотя бы на пастебин

Похожие вопросы

Обсуждают сегодня

Подобного рода ;Следующие три строки это директивы ассемблера, ;которые можно не задавать, т.к.работаем в Visual Studio. ;Символ ";" - это начало однострочного комментария ...
Егор Анелькин
3
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Привет всем. появился вопрос. Разрабатываю сайт, в данный момент он запущен. Хостинг beget. Добавляю на сайт яндекс метрику с помощью полей client-settings (взято отсюда http...
Andrew
2
Morning people Just seeing the conversation about Mining. It's clear that at this point in time it doesn't look like there is much point to it. But the Hasrate is at a al...
Kenny
4
I arrived here after a Chico Crypto show highlighted the project & the Team - the fact that the Team had a long history of successfully working with household names gave me e...
Banter is Bullish
1
Только сейчас дошли руки до Orange pi 5. Это нормально что на нем YOLOv5s выдает 1 кадр раз в 2-3 секунды на CPU? Это без оптимизаций и прочих настроек, просто голый запуск че...
Denis
10
Подскажите, где смотреть результат выполнения программы? Код: ;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, станда...
Егор Анелькин
5
Где в Астане можно купить мясо для шашлыков?
Dancing Іңұқәһүғө
21
Кто-нибудь может присоветовать какого-то приличного посредника для принятия бабок от юриков в ЕС с контрактами/инвойсами в направлении счёт ИП в ру банке или крипта-без-скана-...
knopki 👾
8
Карта сайта