Skip to content

Handle many-to-many adapters with reserved attribute names#160

Merged
TimurKady merged 2 commits intomainfrom
fix-manytomany-field-handling-in-create-method-rm9249
Nov 27, 2025
Merged

Handle many-to-many adapters with reserved attribute names#160
TimurKady merged 2 commits intomainfrom
fix-manytomany-field-handling-in-create-method-rm9249

Conversation

@TimurKady
Copy link
Owner

Summary

  • guard Tortoise many-to-many creation against payloads that shadow relation managers and pre-seed prefetched maps
  • fetch many-to-many relations manually to avoid descriptor conflicts and resolve related instances from primary keys
  • add coverage proving many-to-many payloads no longer replace relation managers

Testing

  • pytest tests/test_tortoise_adapter_m2m_creation.py

Codex Task

@TimurKady TimurKady merged commit ac48a76 into main Nov 27, 2025
1 check passed
@TimurKady TimurKady deleted the fix-manytomany-field-handling-in-create-method-rm9249 branch November 27, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant