polymorphic.contrib.guardian

polymorphic.contrib.guardian.get_polymorphic_base_content_type(obj)

Helper function to return the base polymorphic content type id. This should used with django-guardian and the GUARDIAN_GET_CONTENT_TYPE option.

See the django-guardian documentation for more information:

https://django-guardian.readthedocs.io/en/latest/configuration.html#guardian-get-content-type