Timeline for Storing database references to files/media
Current License: CC BY-SA 3.0
        4 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 29, 2016 at 9:15 | history | bounty awarded | Sebastian Olsen | ||
| Oct 29, 2016 at 9:15 | vote | accept | Sebastian Olsen | ||
| Oct 28, 2016 at 17:42 | comment | added | Sebastian Olsen | 
        
            
    Thank you for your well thought out answer. I've gotten some help outside of this question and I've now done it like this: Instead of using different models to relate a media object to a post, I'm now storing the media directly on the post as "media" as a generic relation. What I am also doing is storing a "media_type" on the media object (so that you can have different types of media, for example a post might have a background image as well as an image) Now all I have to do to fetch some media is for example Post.media.get(media_type="background_image").images.all()
        
     | 
|
| Oct 25, 2016 at 7:30 | history | answered | Ext3h | CC BY-SA 3.0 |