@cached_property
    def plugin(self):
        from fluent_contents.extensions import plugin_pool
        model = self.__class__
        if model is ContentItem:
            # Also allow a non_polymorphic() queryset to resolve the plugin.
            # Corresponding plugin_pool method is still private on purpose.
            # Not sure the utility method should be public, or how it should be named.
            return plugin_pool._get_plugin_by_content_type(self.polymorphic_ctype_id)
        else:
            return plugin_pool.get_plugin_by_model(model)
Test valid short URL generation and redemption via POST requeset.
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/models/db.py/ContentItem.plugin--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/short_url_test.py/ShortURLTestCase.testShortURLPost