Skip to content

Conversation

@TomTruck
Copy link
Contributor

Hi, first all all, thanks for creating django-pydantic-field it's proving incredibly useful for me and my team.

We've encountered a minor issue which we've worked around on our project and whose solution I though I'd share.

The PydanticSchemaField is currently incompatible with the popular django-simple-history library as not all attributes defined on the field are copied when copy is invoked.

This change ensures that any missing attributes are also set on the copied instance.

I'm not sure if this is the best way to do this so any feedback would be gladly received.

Many thanks,

Tom

The `PydanticSchemaField` is currently incompatible with the popular `django-simple-history` library as not all attributes defined on the field are copied when `copy` is invoked.

This change ensures that any missing attributes are also set on the copied instance.
@surenkov
Copy link
Owner

Hi @TomTruck, I really appreciate your help!

I put a small stylistic changes on this branch and will be merging it once all checks are passed.

Thank you for the contribution!

@surenkov surenkov merged commit ce815eb into surenkov:master Aug 24, 2023
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.

2 participants