-
Notifications
You must be signed in to change notification settings - Fork 40
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
StoredUpload should be hotswappable #45
Comments
Thanks for raising this @brianedelman, this would certainly be a useful enhancement. Can you provide a little more detail as to what you had in mind in terms of the functionality you'd be looking for? If you were to extend the Alternatively, would you be looking for something more flexible where you can specify the upload model when you save the upload? I guess this could be handled by specifying the upload model name as a parameter to Yet another option would be that you create a separate model for your additional data that extends some placeholder model class. We then have an optional foreign key in the Just a few thoughts on how this might be addressed. Let me know if you have any thoughts on what might work best for your use case or if you had something different in mind. Also happy to receive suggestions on what approach might be best from the general architecture perspective of the library. I can look at implementing this, otherwise if you want to have a go and open a PR, that's also fine. |
This issue has come up again in #62 and I've opened a new issue (#63) to work on this. Thanks @brianedelman for raising this initially and for your work looking at implementing this. I think I can see a simplified approach to addressing this initially (although I may well be missing something!) so will have a go. I'm going to close this issue and move discussion to on this feature to #63. Do feel free to contribute or provide feedback on any implementation if you're still working with this and would find the feature helpful. |
Discussion on this feature is continuing in #63. |
Currently working on a project where I want StoredUpload to have some extra data attached to it and there currently isn't a way to define my own model for the library to use. Is that something on the roadmap/useful for others?
The text was updated successfully, but these errors were encountered: