django-polymodels
django-polymodels copied to clipboard
Make sure the ContentType table exists before querying it in ContentTypeReference.__call__
Two things to do here:
- [ ] If the
django_contenttypetable is missing we should returnNone. It should be safe as no relations could be pointing to the table yet anyway. - [ ] If the latest
contenttypesmigration is not applied we should fallback to manual querying,