May 2018
Beginner to intermediate
526 pages
11h 57m
English
In generic relations, ContentType objects play the role of pointing to the model used for the relationship. You will need three fields to set up a generic relation in a model:
Edit the models.py file of the actions application and make it look like this:
from django.db import modelsfrom django.contrib.contenttypes.models ...
Read now
Unlock full access