Mastering Django Web Development: Generic Relationships | Packtpub.com
This playlist/video has been uploaded for Marketing purposes and contains only introductory videos.
For the entire video course and code, visit .
Sometimes, you want to combine data from different models. It’s not hard to do this with Python, but generic relationships allow Django to do this for you.
• Include the ContentType and GenericForeignKey modules
• Define a model that has GenericForeignKey
• Ensure that the GenericForeignKey keys are all the same datatype
For the latest web development video tutorials, please visit
Find us on Facebook —
Follow us on Twitter –