Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FileField support #120

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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.

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