Skip to content

Conversation

@jacobwegner
Copy link
Contributor

Refs #118, #119

After implementing #119, I took a stab at FileField support.

I knew that FileField only stores a string in the database, but I didn't fully understand how the FieldFile wrapper was implemented for manipulating the field value.

The approach I've taken here is to mimic how the Django ORM typically interacts with FileField instances.

I've configured the tests to use the InMemoryStorage class to avoid needing to clean up temp files generated during tests.

@jacobwegner
Copy link
Contributor Author

@jieter Thanks for taking a look at my earlier PRs.

I'm wondering what you think about the approach I've taken here; I proposed an alternative in #118 (comment) that I could implement on a separate branch if desired.

@jacobwegner jacobwegner force-pushed the feat/filefield-support branch from 765a76b to 7cd0a2b Compare July 1, 2024 14:21
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