Skip to content

refactor: enhance model relationship descriptors and improve field handling#5

Merged
Ox54 merged 1 commit intomainfrom
test/m2m
Feb 16, 2026
Merged

refactor: enhance model relationship descriptors and improve field handling#5
Ox54 merged 1 commit intomainfrom
test/m2m

Conversation

@Ox54
Copy link
Contributor

@Ox54 Ox54 commented Feb 16, 2026

  • Updated RelationshipDescriptor and ForwardDescriptor to inherit from BaseModel for better integration with Pydantic.
  • Refactored the initialization of descriptors to use class attributes instead of constructor parameters for cleaner code.
  • Improved the handling of primary key and autoincrement properties in the schema generation process.
  • Adjusted the metaclass to ensure proper assignment of target model names and field names in relationship descriptors.

…ndling

- Updated RelationshipDescriptor and ForwardDescriptor to inherit from BaseModel for better integration with Pydantic.
- Refactored the initialization of descriptors to use class attributes instead of constructor parameters for cleaner code.
- Improved the handling of primary key and autoincrement properties in the schema generation process.
- Adjusted the metaclass to ensure proper assignment of target model names and field names in relationship descriptors.
@Ox54 Ox54 self-assigned this Feb 16, 2026
@Ox54 Ox54 merged commit 6275ebb into main Feb 16, 2026
6 checks passed
@Ox54 Ox54 deleted the test/m2m branch February 16, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant