django-polymodels icon indicating copy to clipboard operation
django-polymodels copied to clipboard

Make sure the ContentType table exists before querying it in ContentTypeReference.__call__

Open charettes opened this issue 8 years ago • 1 comments

This is a workaround for Django #24182.

charettes avatar Dec 17 '16 17:12 charettes

Two things to do here:

  • [ ] If the django_contenttype table is missing we should return None. It should be safe as no relations could be pointing to the table yet anyway.
  • [ ] If the latest contenttypes migration is not applied we should fallback to manual querying,

charettes avatar Dec 17 '16 17:12 charettes