SYMBOL INDEX (1405 symbols across 111 files) FILE: conftest.py function pytest_configure (line 8) | def pytest_configure(config): function first_breakable_line (line 15) | def first_breakable_line(obj) -> tuple[str, int]: function pytest_runtest_call (line 47) | def pytest_runtest_call(item): function _install_playwright_browsers (line 64) | def _install_playwright_browsers() -> None: function pytest_collection_modifyitems (line 69) | def pytest_collection_modifyitems(config: pytest.Config, items: list[pyt... FILE: docs/conf.py function pypi_role (line 309) | def pypi_role(name, rawtext, text, lineno, inliner, options={}, content=... function setup (line 317) | def setup(app): FILE: example/orders/admin.py class CreditCardPaymentInline (line 8) | class CreditCardPaymentInline(StackedPolymorphicInline.Child): class BankPaymentInline (line 12) | class BankPaymentInline(StackedPolymorphicInline.Child): class SepaPaymentInline (line 16) | class SepaPaymentInline(StackedPolymorphicInline.Child): class PaymentInline (line 20) | class PaymentInline(StackedPolymorphicInline): class OrderAdmin (line 32) | class OrderAdmin(PolymorphicInlineSupportMixin, admin.ModelAdmin): FILE: example/orders/migrations/0001_initial.py class Migration (line 4) | class Migration(migrations.Migration): FILE: example/orders/models.py class Order (line 8) | class Order(models.Model): class Meta (line 15) | class Meta: method __str__ (line 20) | def __str__(self): class Payment (line 24) | class Payment(PolymorphicModel): class Meta (line 33) | class Meta: method __str__ (line 37) | def __str__(self): class CreditCardPayment (line 41) | class CreditCardPayment(Payment): class Meta (line 52) | class Meta: class BankPayment (line 57) | class BankPayment(Payment): class Meta (line 65) | class Meta: class SepaPayment (line 70) | class SepaPayment(Payment): class Meta (line 78) | class Meta: FILE: example/pexp/admin.py class ProjectAdmin (line 11) | class ProjectAdmin(PolymorphicParentModelAdmin): class ProjectChildAdmin (line 17) | class ProjectChildAdmin(PolymorphicChildModelAdmin): class UUIDModelAAdmin (line 30) | class UUIDModelAAdmin(PolymorphicParentModelAdmin): class UUIDModelAChildAdmin (line 35) | class UUIDModelAChildAdmin(PolymorphicChildModelAdmin): class ProxyAdmin (line 44) | class ProxyAdmin(PolymorphicParentModelAdmin): class ProxyChildAdmin (line 49) | class ProxyChildAdmin(PolymorphicChildModelAdmin): FILE: example/pexp/management/commands/p2cmd.py function show_queries (line 18) | def show_queries(): function print_timing (line 26) | def print_timing(func, message="", iterations=1): class Command (line 47) | class Command(BaseCommand): method handle_noargs (line 50) | def handle_noargs(self, **options): function poly_sql_query (line 88) | def poly_sql_query(): function poly_sql_query2 (line 107) | def poly_sql_query2(): FILE: example/pexp/management/commands/pcmd.py function reset_queries (line 10) | def reset_queries(): class Command (line 14) | class Command(NoArgsCommand): method handle_noargs (line 17) | def handle_noargs(self, **options): FILE: example/pexp/management/commands/polybench.py function show_queries (line 16) | def show_queries(): function print_timing (line 28) | def print_timing(func, message="", iterations=1): function run_vanilla_any_poly (line 50) | def run_vanilla_any_poly(func, iterations=1): function bench_create (line 61) | def bench_create(model): function bench_load1 (line 71) | def bench_load1(model): function bench_load1_short (line 76) | def bench_load1_short(model): function bench_load2 (line 82) | def bench_load2(model): function bench_load2_short (line 89) | def bench_load2_short(model): function bench_delete (line 97) | def bench_delete(model): class Command (line 105) | class Command(BaseCommand): method handle_noargs (line 108) | def handle_noargs(self, **options): FILE: example/pexp/management/commands/polymorphic_create_test_data.py class Command (line 9) | class Command(BaseCommand): method handle_noargs (line 12) | def handle_noargs(self, **options): FILE: example/pexp/migrations/0001_initial.py class Migration (line 6) | class Migration(migrations.Migration): FILE: example/pexp/models.py class Project (line 7) | class Project(ShowFieldContent, PolymorphicModel): class ArtProject (line 13) | class ArtProject(Project): class ResearchProject (line 17) | class ResearchProject(Project): class UUIDModelA (line 21) | class UUIDModelA(ShowFieldTypeAndContent, PolymorphicModel): class UUIDModelB (line 28) | class UUIDModelB(UUIDModelA): class UUIDModelC (line 32) | class UUIDModelC(UUIDModelB): class ProxyBase (line 36) | class ProxyBase(PolymorphicModel): method __unicode__ (line 41) | def __unicode__(self): class Meta (line 44) | class Meta: class ProxyA (line 48) | class ProxyA(ProxyBase): class Meta (line 49) | class Meta: method __unicode__ (line 52) | def __unicode__(self): class ProxyB (line 56) | class ProxyB(ProxyBase): class Meta (line 57) | class Meta: method __unicode__ (line 60) | def __unicode__(self): class TestModelA (line 67) | class TestModelA(ShowFieldTypeAndContent, PolymorphicModel): class TestModelB (line 71) | class TestModelB(TestModelA): class TestModelC (line 75) | class TestModelC(TestModelB): class NormalModelA (line 80) | class NormalModelA(models.Model): class NormalModelB (line 86) | class NormalModelB(NormalModelA): class NormalModelC (line 90) | class NormalModelC(NormalModelB): FILE: src/polymorphic/admin/childadmin.py class ParentAdminNotRegistered (line 31) | class ParentAdminNotRegistered(RuntimeError): class PolymorphicChildModelAdmin (line 35) | class PolymorphicChildModelAdmin(_ModelAdminBase, Generic[_ModelT]): method __init__ (line 65) | def __init__(self, model: type[_ModelT], admin_site: Any, *args: Any, ... method get_form (line 71) | def get_form( method get_model_perms (line 89) | def get_model_perms(self, request): method change_form_template (line 97) | def change_form_template(self) -> list[str]: # type: ignore[override] method delete_confirmation_template (line 117) | def delete_confirmation_template(self) -> list[str]: # type: ignore[o... method object_history_template (line 137) | def object_history_template(self) -> list[str]: # type: ignore[override] method _get_parent_admin (line 156) | def _get_parent_admin(self): method response_post_save_add (line 184) | def response_post_save_add(self, request, obj): method response_post_save_change (line 187) | def response_post_save_change(self, request, obj): method render_change_form (line 190) | def render_change_form(self, request, context, add=False, change=False... method delete_view (line 197) | def delete_view(self, request, object_id, context=None): method history_view (line 202) | def history_view(self, request, object_id, extra_context=None): method get_base_fieldsets (line 212) | def get_base_fieldsets(self, request, obj=None): method get_fieldsets (line 215) | def get_fieldsets(self, request, obj=None): method get_subclass_fields (line 234) | def get_subclass_fields(self, request, obj=None): FILE: src/polymorphic/admin/filters.py class PolymorphicChildModelFilter (line 15) | class PolymorphicChildModelFilter(admin.SimpleListFilter): method lookups (line 30) | def lookups( # type: ignore[override] method queryset (line 37) | def queryset(self, request: HttpRequest, queryset: QuerySet[Any]) -> Q... FILE: src/polymorphic/admin/forms.py class PolymorphicModelChoiceForm (line 8) | class PolymorphicModelChoiceForm(forms.Form): method __init__ (line 20) | def __init__(self, *args: Any, **kwargs: Any) -> None: FILE: src/polymorphic/admin/generic.py class GenericPolymorphicInlineModelAdmin (line 20) | class GenericPolymorphicInlineModelAdmin(PolymorphicInlineModelAdmin, Ge... method get_formset (line 28) | def get_formset( # type: ignore[override] class Child (line 48) | class Child(PolymorphicInlineModelAdmin.Child): method content_type (line 59) | def content_type(self) -> ContentType: method get_formset_child (line 66) | def get_formset_child( class GenericStackedPolymorphicInline (line 78) | class GenericStackedPolymorphicInline(GenericPolymorphicInlineModelAdmin): FILE: src/polymorphic/admin/helpers.py class PolymorphicInlineAdminForm (line 20) | class PolymorphicInlineAdminForm(InlineAdminForm): method polymorphic_ctype_field (line 25) | def polymorphic_ctype_field(self) -> AdminField: method is_empty (line 29) | def is_empty(self) -> bool: class PolymorphicInlineAdminFormSet (line 35) | class PolymorphicInlineAdminFormSet(InlineAdminFormSet): method __init__ (line 43) | def __init__(self, *args: Any, **kwargs: Any) -> None: method __iter__ (line 49) | def __iter__(self) -> Iterator[PolymorphicInlineAdminForm]: method get_child_fieldsets (line 84) | def get_child_fieldsets(self, child_inline: Any) -> list[tuple[str | N... method get_child_readonly_fields (line 87) | def get_child_readonly_fields(self, child_inline: Any) -> list[str]: method get_child_prepopulated_fields (line 90) | def get_child_prepopulated_fields(self, child_inline: Any) -> dict[str... method inline_formset_data (line 95) | def inline_formset_data(self) -> str: class PolymorphicInlineSupportMixin (line 121) | class PolymorphicInlineSupportMixin: method get_inline_formsets (line 134) | def get_inline_formsets( FILE: src/polymorphic/admin/inlines.py class PolymorphicInlineModelAdmin (line 35) | class PolymorphicInlineModelAdmin(InlineModelAdmin): method __init__ (line 69) | def __init__(self, parent_model: type[models.Model], admin_site: Admin... method get_child_inlines (line 91) | def get_child_inlines(self) -> list[type["PolymorphicInlineModelAdmin.... method get_child_inline_instances (line 101) | def get_child_inline_instances(self) -> list["PolymorphicInlineModelAd... method get_child_inline_instance (line 110) | def get_child_inline_instance( method get_formset (line 123) | def get_formset( method get_formset_children (line 144) | def get_formset_children( method get_fieldsets (line 157) | def get_fieldsets(self, request: HttpRequest, obj: Any = None) -> "_Fi... method get_fields (line 166) | def get_fields(self, request: HttpRequest, obj: Any = None) -> "_Field... method media (line 174) | def media(self): class Child (line 194) | class Child(InlineModelAdmin): method __init__ (line 211) | def __init__(self, parent_inline: "PolymorphicInlineModelAdmin") -> ... method get_formset (line 217) | def get_formset(self, request: HttpRequest, obj: Any = None, **kwarg... method get_fields (line 223) | def get_fields(self, request: HttpRequest, obj: Any = None) -> "_Fie... method get_formset_child (line 238) | def get_formset_child( class StackedPolymorphicInline (line 289) | class StackedPolymorphicInline(PolymorphicInlineModelAdmin): FILE: src/polymorphic/admin/parentadmin.py class RegistrationClosed (line 35) | class RegistrationClosed(RuntimeError): class ChildAdminNotRegistered (line 39) | class ChildAdminNotRegistered(RuntimeError): class PolymorphicParentModelAdmin (line 43) | class PolymorphicParentModelAdmin(_ModelAdminBase, Generic[_ModelT]): method __init__ (line 76) | def __init__(self, model: type[_ModelT], admin_site: Any, *args: Any, ... method _lazy_setup (line 83) | def _lazy_setup(self): method get_child_models (line 102) | def get_child_models(self): method get_child_type_choices (line 115) | def get_child_type_choices(self, request, action): method _get_real_admin (line 134) | def _get_real_admin(self, object_id, super_if_self=True): method _get_real_admin_by_ct (line 143) | def _get_real_admin_by_ct(self, ct_id, super_if_self=True): method _get_real_admin_by_model (line 157) | def _get_real_admin_by_model(self, model_class, super_if_self=True): method get_queryset (line 179) | def get_queryset(self, request): method add_view (line 186) | def add_view(self, request, form_url="", extra_context=None): method change_view (line 206) | def change_view(self, request, object_id, *args, **kwargs): method changeform_view (line 211) | def changeform_view(self, request, object_id=None, *args, **kwargs): method history_view (line 222) | def history_view(self, request, object_id, extra_context=None): method delete_view (line 227) | def delete_view(self, request, object_id, extra_context=None): method get_urls (line 232) | def get_urls(self): method add_type_view (line 243) | def add_type_view(self, request, form_url=""): method render_add_type_form (line 289) | def render_add_type_form(self, request, context, form_url=""): method change_list_template (line 317) | def change_list_template(self) -> list[str]: # type: ignore[override] FILE: src/polymorphic/apps.py function check_reserved_field_names (line 9) | def check_reserved_field_names( function _check_polymorphic_managers (line 28) | def _check_polymorphic_managers(model: type[models.Model]) -> list[Check... function _check_model_reserved_field_names (line 71) | def _check_model_reserved_field_names(model: type[models.Model]) -> list... class PolymorphicConfig (line 89) | class PolymorphicConfig(AppConfig): method ready (line 93) | def ready(self) -> None: FILE: src/polymorphic/base.py class ManagerInheritanceWarning (line 26) | class ManagerInheritanceWarning(RuntimeWarning): function polymorphic_base_manager (line 43) | def polymorphic_base_manager(self): class PolymorphicModelBase (line 66) | class PolymorphicModelBase(ModelBase): method __new__ (line 103) | def __new__( method base_objects (line 156) | def base_objects(self) -> models.Manager[Any]: method _base_objects (line 166) | def _base_objects(self) -> models.Manager[Any]: method _default_manager (line 177) | def _default_manager(cls) -> PolymorphicManager[Any]: method _base_manager (line 215) | def _base_manager(cls) -> PolymorphicManager[Any]: FILE: src/polymorphic/contrib/drf/serializers.py class PolymorphicSerializer (line 9) | class PolymorphicSerializer(serializers.Serializer): method __new__ (line 13) | def __new__(cls, *args, **kwargs): method __init__ (line 26) | def __init__(self, *args, **kwargs): method to_resource_type (line 45) | def to_resource_type(self, model_or_instance): method to_representation (line 48) | def to_representation(self, instance): method to_internal_value (line 60) | def to_internal_value(self, data): method create (line 72) | def create(self, validated_data): method update (line 77) | def update(self, instance, validated_data): method is_valid (line 82) | def is_valid(self, *args, **kwargs): method run_validation (line 104) | def run_validation(self, data=empty): method _to_model (line 119) | def _to_model(self, model_or_instance): method _get_resource_type_from_mapping (line 126) | def _get_resource_type_from_mapping(self, mapping): method _get_serializer_from_model_or_instance (line 136) | def _get_serializer_from_model_or_instance(self, model_or_instance): method _get_serializer_from_resource_type (line 150) | def _get_serializer_from_resource_type(self, resource_type): FILE: src/polymorphic/contrib/extra_views.py class PolymorphicFormSetMixin (line 30) | class PolymorphicFormSetMixin: method get_formset_children (line 44) | def get_formset_children(self) -> list[PolymorphicFormSetChild]: method get_formset_child_kwargs (line 54) | def get_formset_child_kwargs(self) -> dict[str, Any]: method get_formset (line 57) | def get_formset(self) -> type[BaseFormSet]: class PolymorphicFormSetView (line 72) | class PolymorphicFormSetView(PolymorphicFormSetMixin, extra_views.ModelF... class PolymorphicInlineFormSetView (line 93) | class PolymorphicInlineFormSetView(PolymorphicFormSetMixin, extra_views.... class PolymorphicInlineFormSet (line 115) | class PolymorphicInlineFormSet(PolymorphicFormSetMixin, extra_views.Inli... FILE: src/polymorphic/contrib/guardian.py function get_polymorphic_base_content_type (line 9) | def get_polymorphic_base_content_type(obj: Any) -> ContentType: FILE: src/polymorphic/deletion.py function migration_fingerprint (line 19) | def migration_fingerprint(value: Any) -> Any: class PolymorphicGuard (line 40) | class PolymorphicGuard: method __init__ (line 51) | def __init__(self, action: Callable[..., Any]) -> None: method __call__ (line 56) | def __call__( method migration_key (line 84) | def migration_key(self) -> Any: method __eq__ (line 87) | def __eq__(self, other: object) -> bool: method __hash__ (line 114) | def __hash__(self) -> int: class PolymorphicGuardSerializer (line 118) | class PolymorphicGuardSerializer(BaseSerializer): method serialize (line 128) | def serialize(self) -> tuple[str, set[str]]: FILE: src/polymorphic/formsets/generic.py class GenericPolymorphicFormSetChild (line 21) | class GenericPolymorphicFormSetChild(PolymorphicFormSetChild): method __init__ (line 29) | def __init__( method get_form (line 40) | def get_form( class BaseGenericPolymorphicInlineFormSet (line 70) | class BaseGenericPolymorphicInlineFormSet(BaseGenericInlineFormSet, Base... function generic_polymorphic_inlineformset_factory (line 76) | def generic_polymorphic_inlineformset_factory( FILE: src/polymorphic/formsets/models.py class UnsupportedChildType (line 27) | class UnsupportedChildType(LookupError): class PolymorphicFormSetChild (line 31) | class PolymorphicFormSetChild: method __init__ (line 47) | def __init__( method content_type (line 77) | def content_type(self) -> ContentType: method get_form (line 84) | def get_form(self, **kwargs: Any) -> type[ModelForm[Any]]: function polymorphic_child_forms_factory (line 137) | def polymorphic_child_forms_factory( class BasePolymorphicModelFormSet (line 154) | class BasePolymorphicModelFormSet(BaseModelFormSet): method __init__ (line 170) | def __init__(self, *args: Any, **kwargs: Any) -> None: method _construct_form (line 174) | def _construct_form(self, i: int, **kwargs: Any) -> BaseForm: method add_fields (line 283) | def add_fields(self, form: BaseForm, index: int | None) -> None: method get_form_class (line 296) | def get_form_class(self, model: type[models.Model]) -> type[ModelForm[... method is_multipart (line 314) | def is_multipart(self) -> bool: method media (line 322) | def media(self) -> Media: method empty_forms (line 331) | def empty_forms(self) -> list[BaseForm]: method empty_form (line 351) | def empty_form(self) -> BaseForm: function polymorphic_modelformset_factory (line 358) | def polymorphic_modelformset_factory( class BasePolymorphicInlineFormSet (line 429) | class BasePolymorphicInlineFormSet(BaseInlineFormSet, BasePolymorphicMod... method _construct_form (line 434) | def _construct_form(self, i: int, **kwargs: Any) -> BaseForm: function polymorphic_inlineformset_factory (line 438) | def polymorphic_inlineformset_factory( FILE: src/polymorphic/formsets/utils.py function add_media (line 8) | def add_media(dest: Media, media: Media) -> None: FILE: src/polymorphic/managers.py class PolymorphicManager (line 75) | class PolymorphicManager(models.Manager[_All], Generic[_All, _Base]): method all (line 87) | def all(self) -> PolymorphicQuerySet[_All, _Base]: ... method filter (line 88) | def filter(self, *args: Any, **kwargs: Any) -> PolymorphicQuerySet[_Al... method from_queryset (line 91) | def from_queryset( method get_queryset (line 99) | def get_queryset(self) -> PolymorphicQuerySet[_All, _Base]: method __str__ (line 105) | def __str__(self) -> str: method non_polymorphic (line 111) | def non_polymorphic(self) -> PolymorphicQuerySet[_Base, _Base]: method instance_of (line 116) | def instance_of(self, __a: type[_A], /) -> PolymorphicQuerySet[_A, _Ba... method instance_of (line 119) | def instance_of( method instance_of (line 124) | def instance_of( method instance_of (line 129) | def instance_of( method instance_of (line 134) | def instance_of(self, *args: type[PolymorphicModel]) -> PolymorphicQue... method instance_of (line 136) | def instance_of( method not_instance_of (line 141) | def not_instance_of(self, *args: type[PolymorphicModel]) -> Polymorphi... method get_real_instances (line 144) | def get_real_instances(self, base_result_objects: Iterable[_All] | Non... method create_from_super (line 147) | def create_from_super(self, obj: models.Model, **kwargs: Any) -> _Base: class PolymorphicManyRelatedManager (line 199) | class PolymorphicManyRelatedManager( # type: ignore[type-var] class PolymorphicRelatedManager (line 205) | class PolymorphicRelatedManager( # type: ignore[type-var] class PolymorphicRelatedManager (line 213) | class PolymorphicRelatedManager(PolymorphicManager[_All, _Base], Generic... class PolymorphicManyRelatedManager (line 215) | class PolymorphicManyRelatedManager( class PolymorphicManyToManyDescriptor (line 221) | class PolymorphicManyToManyDescriptor(ManyToManyDescriptor, Generic[_All... method __get__ (line 241) | def __get__(self, instance: None, cls: Any | None = None, /) -> Self: ... method __get__ (line 244) | def __get__( method __get__ (line 248) | def __get__( class PolymorphicReverseManyToOneDescriptor (line 257) | class PolymorphicReverseManyToOneDescriptor( method __get__ (line 285) | def __get__(self, instance: None, cls: Any | None = None, /) -> Self: ... method __get__ (line 288) | def __get__( method __get__ (line 292) | def __get__( class PolymorphicForwardManyToOneDescriptor (line 300) | class PolymorphicForwardManyToOneDescriptor( method __get__ (line 328) | def __get__(self, instance: None, cls: Any | None = None, /) -> Self: ... method __get__ (line 331) | def __get__( method __get__ (line 339) | def __get__( method __get__ (line 346) | def __get__( method get_queryset (line 353) | def get_queryset(self, **hints: Any) -> PolymorphicQuerySet[_All, _Base]: class PolymorphicForwardOneToOneDescriptor (line 360) | class PolymorphicForwardOneToOneDescriptor( class PolymorphicReverseOneToOneDescriptor (line 390) | class PolymorphicReverseOneToOneDescriptor( method __get__ (line 419) | def __get__(self, instance: None, cls: Any | None = None, /) -> Self: ... method __get__ (line 422) | def __get__( method __get__ (line 430) | def __get__( method __get__ (line 437) | def __get__( method get_queryset (line 444) | def get_queryset(self, **hints: Any) -> PolymorphicQuerySet[_All, _Base]: FILE: src/polymorphic/models.py class PolymorphicTypeUndefined (line 28) | class PolymorphicTypeUndefined(LookupError): ... class PolymorphicTypeInvalid (line 31) | class PolymorphicTypeInvalid(RuntimeError): ... class PolymorphicModel (line 34) | class PolymorphicModel(models.Model, metaclass=PolymorphicModelBase): class Meta (line 68) | class Meta: method polymorphic_primary_key_name (line 72) | def polymorphic_primary_key_name(cls) -> str: method translate_polymorphic_Q_object (line 88) | def translate_polymorphic_Q_object(cls, q: Q) -> Q: method pre_save_polymorphic (line 91) | def pre_save_polymorphic(self, using: str = DEFAULT_DB_ALIAS) -> None: method save (line 122) | def save( method get_real_instance_class (line 151) | def get_real_instance_class(self) -> type[Self] | None: method get_real_concrete_instance_class_id (line 194) | def get_real_concrete_instance_class_id(self) -> int | None: method get_real_concrete_instance_class (line 204) | def get_real_concrete_instance_class(self) -> type[Self] | None: method get_real_instance (line 215) | def get_real_instance(self) -> Self: method delete (line 242) | def delete( FILE: src/polymorphic/query.py class BasePolymorphicModelIterable (line 48) | class BasePolymorphicModelIterable(ModelIterable[_All]): class BasePolymorphicModelIterable (line 52) | class BasePolymorphicModelIterable(ModelIterable): class _Inconsistent (line 56) | class _Inconsistent: class PolymorphicModelIterable (line 65) | class PolymorphicModelIterable(BasePolymorphicModelIterable, Generic[_Al... method __iter__ (line 75) | def __iter__(self) -> Iterator[_All]: method _polymorphic_iterator (line 81) | def _polymorphic_iterator(self, base_iter: Iterator[_All]) -> Iterator... function transmogrify (line 125) | def transmogrify(cls: type[_All], obj: models.Model) -> _All: class PolymorphicQuerySet (line 146) | class PolymorphicQuerySet(QuerySet[_All], Generic[_All, _Base]): method __init__ (line 159) | def __init__(self, *args: Any, **kwargs: Any) -> None: method _clone (line 171) | def _clone(self, *args: Any, **kwargs: Any) -> Self: method as_manager (line 182) | def as_manager(cls) -> models.Manager[_All]: method bulk_create (line 196) | def bulk_create( method non_polymorphic (line 210) | def non_polymorphic(self) -> PolymorphicQuerySet[_Base, _Base]: method instance_of (line 221) | def instance_of(self, __a: type[_A], /) -> PolymorphicQuerySet[_A, _Ba... method instance_of (line 224) | def instance_of( method instance_of (line 229) | def instance_of( method instance_of (line 234) | def instance_of( method instance_of (line 239) | def instance_of(self, *args: type["PolymorphicModel"]) -> PolymorphicQ... method instance_of (line 241) | def instance_of( method not_instance_of (line 248) | def not_instance_of(self, *args: type["PolymorphicModel"]) -> Self: method _filter_or_exclude (line 253) | def _filter_or_exclude(self, negate: bool, args: Any, kwargs: Any) -> ... method order_by (line 265) | def order_by(self, *field_names: str | Combinable) -> Self: method defer (line 276) | def defer(self, field: None, /) -> Self: ... method defer (line 278) | def defer(self, *fields: str) -> Self: ... method defer (line 279) | def defer(self, *fields: str | None) -> Self: method only (line 298) | def only(self, *fields: str) -> Self: method _polymorphic_add_deferred_loading (line 312) | def _polymorphic_add_deferred_loading(self, field_names: Iterable[str]... method _polymorphic_add_immediate_loading (line 325) | def _polymorphic_add_immediate_loading(self, field_names: Iterable[str... method _process_aggregate_args (line 344) | def _process_aggregate_args(self, args: Sequence[Any], kwargs: dict[st... method annotate (line 398) | def annotate(self, *args: Any, **kwargs: Any) -> Self: method aggregate (line 404) | def aggregate(self, *args: Any, **kwargs: Any) -> dict[str, Any]: method _values (line 414) | def _values(self, *args: Any, **kwargs: Any) -> Self: method _get_real_instances (line 425) | def _get_real_instances(self, base_result_objects: Sequence[_All]) -> ... method __repr__ (line 655) | def __repr__(self, *args, **kwargs): class _p_list_class (line 662) | class _p_list_class(list[Any]): method __repr__ (line 663) | def __repr__(self, *args: Any, **kwargs: Any) -> str: method get_real_instances (line 667) | def get_real_instances(self, base_result_objects: Iterable[_All] | Non... method delete (line 694) | def delete(self) -> tuple[int, dict[str, int]]: FILE: src/polymorphic/query_translate.py function translate_polymorphic_filter_definitions_in_kwargs (line 29) | def translate_polymorphic_filter_definitions_in_kwargs( function translate_polymorphic_Q_object (line 63) | def translate_polymorphic_Q_object( function translate_polymorphic_filter_definitions_in_args (line 91) | def translate_polymorphic_filter_definitions_in_args( function _translate_polymorphic_filter_definition (line 108) | def _translate_polymorphic_filter_definition( function translate_polymorphic_field_path (line 140) | def translate_polymorphic_field_path(queryset_model: type[models.Model],... function _create_base_path (line 205) | def _create_base_path(baseclass: type[models.Model], myclass: type[model... function _get_query_related_name (line 221) | def _get_query_related_name(myclass: type[models.Model]) -> str: function create_instanceof_q (line 231) | def create_instanceof_q( function _get_mro_content_type_ids (line 277) | def _get_mro_content_type_ids( FILE: src/polymorphic/related_descriptors.py class NonPolymorphicForwardOneToOneDescriptor (line 10) | class NonPolymorphicForwardOneToOneDescriptor(ForwardOneToOneDescriptor): method get_queryset (line 17) | def get_queryset(self, **hints: Any) -> QuerySet[Any]: class NonPolymorphicReverseOneToOneDescriptor (line 33) | class NonPolymorphicReverseOneToOneDescriptor(ReverseOneToOneDescriptor): method get_queryset (line 40) | def get_queryset(self, **hints: Any) -> QuerySet[Any]: FILE: src/polymorphic/showfields.py class ShowFieldBase (line 16) | class ShowFieldBase(_Base): method __repr__ (line 31) | def __repr__(self) -> str: method _showfields_get_content (line 34) | def _showfields_get_content(self, field_name: str, field_type: type = ... method _showfields_add_regular_fields (line 60) | def _showfields_add_regular_fields(self, parts: list[tuple[bool, str, ... method _showfields_add_dynamic_fields (line 89) | def _showfields_add_dynamic_fields( method __str__ (line 104) | def __str__(self) -> str: class ShowFieldType (line 170) | class ShowFieldType(ShowFieldBase): class ShowFieldContent (line 176) | class ShowFieldContent(ShowFieldBase): class ShowFieldTypeAndContent (line 182) | class ShowFieldTypeAndContent(ShowFieldBase): FILE: src/polymorphic/templatetags/polymorphic_admin_tags.py class BreadcrumbScope (line 8) | class BreadcrumbScope(Node): method __init__ (line 12) | def __init__(self, base_opts: FilterExpression, nodelist: NodeList) ->... method parse (line 17) | def parse(cls, parser: Parser, token: Token) -> Self: method render (line 29) | def render(self, context: Context) -> str: function breadcrumb_scope (line 49) | def breadcrumb_scope(parser: Parser, token: Token) -> BreadcrumbScope: FILE: src/polymorphic/templatetags/polymorphic_formset_tags.py function include_empty_form (line 77) | def include_empty_form(formset: BaseFormSet) -> Generator[BaseForm, None... function as_script_options (line 95) | def as_script_options(formset: "BaseModelFormSet[Any, Any]") -> str: function as_form_type (line 132) | def as_form_type(form: "ModelForm[Any]") -> str: function as_model_name (line 143) | def as_model_name(model: type[models.Model]) -> str: FILE: src/polymorphic/tests/admin.py class Model2Admin (line 41) | class Model2Admin(PolymorphicParentModelAdmin): class Model2DAdmin (line 51) | class Model2DAdmin(PolymorphicChildModelAdmin): class PlainAAdmin (line 56) | class PlainAAdmin(ModelAdmin): method get_queryset (line 59) | def get_queryset(self, request: HttpRequest) -> QuerySet: class Inline (line 63) | class Inline(StackedPolymorphicInline): method get_child_inlines (line 66) | def get_child_inlines(self): class InlineModelAChild (line 73) | class InlineModelAChild(StackedPolymorphicInline.Child): class InlineModelBChild (line 76) | class InlineModelBChild(StackedPolymorphicInline.Child): class InlineParentAdmin (line 82) | class InlineParentAdmin(PolymorphicInlineSupportMixin, ModelAdmin): class NoChildrenAdmin (line 88) | class NoChildrenAdmin(PolymorphicParentModelAdmin): class ModelWithPolyFKAdmin (line 93) | class ModelWithPolyFKAdmin(ModelAdmin): class M2MAdminTestAdmin (line 98) | class M2MAdminTestAdmin(PolymorphicParentModelAdmin): class M2MAdminTestChildA (line 104) | class M2MAdminTestChildA(PolymorphicChildModelAdmin): class M2MAdminTestChildB (line 109) | class M2MAdminTestChildB(PolymorphicChildModelAdmin): class M2MAdminTestChildC (line 114) | class M2MAdminTestChildC(PolymorphicChildModelAdmin): class M2MThroughBaseAdmin (line 121) | class M2MThroughBaseAdmin(PolymorphicParentModelAdmin): class M2MThroughProjectAdmin (line 133) | class M2MThroughProjectAdmin(PolymorphicChildModelAdmin): class M2MThroughPersonAdmin (line 140) | class M2MThroughPersonAdmin(PolymorphicChildModelAdmin): class M2MThroughSpecialPersonAdmin (line 147) | class M2MThroughSpecialPersonAdmin(PolymorphicChildModelAdmin): class DirectM2MContainerAdmin (line 154) | class DirectM2MContainerAdmin(ModelAdmin): class M2MThroughMembershipInline (line 165) | class M2MThroughMembershipInline(StackedPolymorphicInline): class MembershipWithPersonChild (line 174) | class MembershipWithPersonChild(StackedPolymorphicInline.Child): class MembershipWithSpecialPersonChild (line 179) | class MembershipWithSpecialPersonChild(StackedPolymorphicInline.Child): class M2MThroughProjectWithTeamAdmin (line 191) | class M2MThroughProjectWithTeamAdmin(PolymorphicInlineSupportMixin, Poly... FILE: src/polymorphic/tests/admintestcase.py class AdminTestCase (line 11) | class AdminTestCase(TestCase): method setUpClass (line 22) | def setUpClass(cls): method setUp (line 28) | def setUp(self): method tearDown (line 37) | def tearDown(self): method register (line 41) | def register(self, model): method admin_register (line 50) | def admin_register(self, model, admin_site): method get_admin_instance (line 58) | def get_admin_instance(self, model): method tearDownClass (line 65) | def tearDownClass(cls): method get_add_url (line 70) | def get_add_url(self, model): method get_changelist_url (line 74) | def get_changelist_url(self, model): method get_change_url (line 78) | def get_change_url(self, model, object_id): method get_history_url (line 82) | def get_history_url(self, model, object_id): method get_delete_url (line 86) | def get_delete_url(self, model, object_id): method admin_get_add (line 90) | def admin_get_add(self, model, qs=""): method admin_post_add (line 100) | def admin_post_add(self, model, formdata, qs=""): method admin_get_changelist (line 110) | def admin_get_changelist(self, model): method admin_get_change (line 120) | def admin_get_change(self, model, object_id, query=None, **extra): method admin_post_change (line 132) | def admin_post_change(self, model, object_id, formdata, **extra): method admin_get_history (line 144) | def admin_get_history(self, model, object_id, query=None, **extra): method admin_get_delete (line 156) | def admin_get_delete(self, model, object_id, query=None, **extra): method admin_post_delete (line 168) | def admin_post_delete(self, model, object_id, **extra): method create_admin_request (line 181) | def create_admin_request(self, method, url, data=None, **extra): method assertFormSuccess (line 208) | def assertFormSuccess(self, request_url, response): FILE: src/polymorphic/tests/conftest.py function pytest_collection_modifyitems (line 9) | def pytest_collection_modifyitems(config: pytest.Config, items: list[pyt... FILE: src/polymorphic/tests/deletion/migrations/0001_initial.py class Migration (line 10) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/deletion/models.py function project_directory_path (line 8) | def project_directory_path(instance, filename): class Standalone (line 16) | class Standalone(models.Model): class PlainA (line 20) | class PlainA(models.Model): class PlainB1 (line 26) | class PlainB1(PlainA): class PlainB2 (line 30) | class PlainB2(PlainA): class PlainC1 (line 36) | class PlainC1(PlainB1): class RelatedToChild (line 42) | class RelatedToChild(models.Model): class Base (line 48) | class Base(models.Model): class Child (line 52) | class Child(Base): class GrandChild (line 56) | class GrandChild(Child): class RelatedToGrandChild (line 60) | class RelatedToGrandChild(models.Model): class Normal1 (line 78) | class Normal1(models.Model): class Poly1 (line 82) | class Poly1(PolymorphicModel): class A1 (line 86) | class A1(Poly1): class B1 (line 90) | class B1(Poly1): class C1 (line 94) | class C1(Poly1): class Normal2 (line 108) | class Normal2(models.Model): class Poly2 (line 112) | class Poly2(PolymorphicModel): class A2 (line 116) | class A2(Poly2): class B2 (line 120) | class B2(Poly2): class C2 (line 124) | class C2(Poly2): class Normal3 (line 139) | class Normal3(models.Model): class Poly3 (line 143) | class Poly3(PolymorphicModel, Normal3): class A3 (line 147) | class A3(Poly3): class B3 (line 151) | class B3(Poly3): class Normal4 (line 165) | class Normal4(models.Model): class Poly4 (line 169) | class Poly4(PolymorphicModel): class A4 (line 173) | class A4(Poly4): class B4 (line 177) | class B4(Poly4): class C4 (line 181) | class C4(Poly4): class Normal4_1 (line 185) | class Normal4_1(models.Model): class Poly4_1 (line 189) | class Poly4_1(PolymorphicModel): class A4_1 (line 193) | class A4_1(Poly4_1): class B4_1 (line 197) | class B4_1(Poly4_1): class C4_1 (line 201) | class C4_1(Poly4_1): class Normal5 (line 216) | class Normal5(models.Model): class Poly5 (line 220) | class Poly5(PolymorphicModel, Normal5): class A5 (line 224) | class A5(Poly5): class B5 (line 228) | class B5(Poly5): class A_160 (line 243) | class A_160(models.Model): class B_160 (line 247) | class B_160(PolymorphicModel): class B1_160 (line 251) | class B1_160(B_160): class B2_160 (line 255) | class B2_160(B_160): class C_160 (line 259) | class C_160(models.Model): class A_160Plain (line 264) | class A_160Plain(models.Model): class B_160Plain (line 268) | class B_160Plain(models.Model): class B1_160Plain (line 272) | class B1_160Plain(B_160Plain): class B2_160Plain (line 276) | class B2_160Plain(B_160Plain): class C_160Plain (line 280) | class C_160Plain(models.Model): class Farm (line 290) | class Farm(models.Model): class Animal (line 294) | class Animal(PolymorphicModel): class Dog (line 301) | class Dog(Animal): class Cat (line 305) | class Cat(Animal): class A_274 (line 313) | class A_274(PolymorphicModel): class B_274 (line 317) | class B_274(A_274): class D_274 (line 321) | class D_274(A_274): class E_274 (line 325) | class E_274(D_274): class C_274 (line 329) | class C_274(B_274): class Order (line 338) | class Order(models.Model): class Meta (line 341) | class Meta: method __str__ (line 344) | def __str__(self): class Payment (line 348) | class Payment(PolymorphicModel): class Meta (line 353) | class Meta: class CreditCardPayment (line 357) | class CreditCardPayment(Payment): class Beneficiary (line 361) | class Beneficiary(models.Model): class SepaPayment (line 366) | class SepaPayment(Payment): class A_540 (line 384) | class A_540(PolymorphicModel): class B_540 (line 388) | class B_540(A_540): class CustomModel (line 397) | class CustomModel(models.Model): class Project (line 401) | class Project(CustomModel): class DatasetFolder (line 407) | class DatasetFolder(CustomModel): class OriginalFile (line 411) | class OriginalFile(PolymorphicModel, CustomModel): class DatasetRelation (line 419) | class DatasetRelation(OriginalFile): class OriginalDataset (line 424) | class OriginalDataset(OriginalFile): class OriginalImage (line 435) | class OriginalImage(OriginalFile): class PolyDevice (line 445) | class PolyDevice(models.Model): class PolyInterface (line 449) | class PolyInterface(PolymorphicModel): class PolyEthernetInterface (line 454) | class PolyEthernetInterface(PolyInterface): class PolyModularInterface (line 458) | class PolyModularInterface(PolyEthernetInterface): class PolyFixedInterface (line 462) | class PolyFixedInterface(PolyEthernetInterface): class PolyWirelessInterface (line 466) | class PolyWirelessInterface(PolyInterface): class PolyFCInterface (line 470) | class PolyFCInterface(PolyInterface): class Poll (line 474) | class Poll(models.Model): class Question (line 478) | class Question(models.Model): class Answer (line 482) | class Answer(PolymorphicModel): class TextAnswer (line 486) | class TextAnswer(Answer): class YesNoAnswer (line 490) | class YesNoAnswer(Answer): FILE: src/polymorphic/tests/deletion/test_deletion.py class TestDeletion (line 12) | class TestDeletion(TestCase): method setUp (line 13) | def setUp(self): method tearDown (line 19) | def tearDown(self): method test_deletion_bug_160 (line 24) | def test_deletion_bug_160(self): method test_deletion_bug_229 (line 55) | def test_deletion_bug_229(self): method test_deletion_bug_274 (line 94) | def test_deletion_bug_274(self): method test_deletion_bug_357 (line 111) | def test_deletion_bug_357(self): method test_deletion_bug_540 (line 139) | def test_deletion_bug_540(self): method test_deletion_bug_547 (line 153) | def test_deletion_bug_547(self): method test_deletion_bug_608 (line 202) | def test_deletion_bug_608(self): method test_deletion_bug_608_2 (line 228) | def test_deletion_bug_608_2(self): method test_vanilla_deletion (line 247) | def test_vanilla_deletion(self): method test_polymorphic_deletion_scenario1 (line 414) | def test_polymorphic_deletion_scenario1(self): method test_polymorphic_deletion_scenario2 (line 478) | def test_polymorphic_deletion_scenario2(self): method test_polymorphic_deletion_scenario3 (line 535) | def test_polymorphic_deletion_scenario3(self): method test_polymorphic_deletion_scenario4 (line 569) | def test_polymorphic_deletion_scenario4(self): method test_polymorphic_deletion_scenario4_1 (line 629) | def test_polymorphic_deletion_scenario4_1(self): method test_polymorphic_deletion_scenario5 (line 689) | def test_polymorphic_deletion_scenario5(self): method test_raw_delete_results (line 743) | def test_raw_delete_results(self): method test_delete_keep_parents (line 777) | def test_delete_keep_parents(self): FILE: src/polymorphic/tests/errata/models.py class BadModel (line 8) | class BadModel(PolymorphicModel): class PolymorphicMigrationManager (line 13) | class PolymorphicMigrationManager(PolymorphicManager): class OkMigrationManager (line 17) | class OkMigrationManager(Manager): class GoodMigrationManager (line 21) | class GoodMigrationManager(PolymorphicModel): class BadMigrationManager (line 26) | class BadMigrationManager(PolymorphicModel): class BadManager (line 30) | class BadManager(PolymorphicModel): class BadQuerySet (line 34) | class BadQuerySet(PolymorphicModel): FILE: src/polymorphic/tests/errata/test_errata.py class TestErrata (line 14) | class TestErrata(SimpleTestCase): method test_system_checks (line 15) | def test_system_checks(self): method test_polymorphic_guard_requires_callable (line 45) | def test_polymorphic_guard_requires_callable(self): class TestFilterErrata (line 63) | class TestFilterErrata(TestCase): method test_invalid_field_lookup_raises_field_error (line 64) | def test_invalid_field_lookup_raises_field_error(self): FILE: src/polymorphic/tests/examples/integrations/apps.py class IntegrationsExampleConfig (line 4) | class IntegrationsExampleConfig(AppConfig): FILE: src/polymorphic/tests/examples/integrations/drf/apps.py class DRFExampleConfig (line 4) | class DRFExampleConfig(AppConfig): FILE: src/polymorphic/tests/examples/integrations/drf/example_serializers.py class ProjectSerializer (line 8) | class ProjectSerializer(serializers.ModelSerializer): class Meta (line 9) | class Meta: class ArtProjectSerializer (line 14) | class ArtProjectSerializer(serializers.ModelSerializer): class Meta (line 15) | class Meta: class ResearchProjectSerializer (line 26) | class ResearchProjectSerializer(serializers.ModelSerializer): class Meta (line 27) | class Meta: class ProjectPolymorphicSerializer (line 32) | class ProjectPolymorphicSerializer(PolymorphicSerializer): FILE: src/polymorphic/tests/examples/integrations/drf/filter_serializers.py class AiModelAnnotatorSerializer (line 6) | class AiModelAnnotatorSerializer(serializers.ModelSerializer): class Meta (line 7) | class Meta: class UserAnnotatorSerializer (line 12) | class UserAnnotatorSerializer(serializers.ModelSerializer): class Meta (line 13) | class Meta: class AnnotatorSerializer (line 18) | class AnnotatorSerializer(serializers.ModelSerializer): class Meta (line 19) | class Meta: class AnnotatorPolymorphicSerializer (line 24) | class AnnotatorPolymorphicSerializer(PolymorphicSerializer): class AnnotationSerializer (line 32) | class AnnotationSerializer(serializers.ModelSerializer): class Meta (line 37) | class Meta: FILE: src/polymorphic/tests/examples/integrations/drf/filter_views.py class DataFilterSet (line 8) | class DataFilterSet(django_filters.FilterSet): class Meta (line 13) | class Meta: method filter_by_ai_model (line 17) | def filter_by_ai_model(self, queryset, name, value): class AnnotationTrainingViewSet (line 23) | class AnnotationTrainingViewSet( FILE: src/polymorphic/tests/examples/integrations/drf/migrations/0001_initial.py class Migration (line 8) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/integrations/drf/models/example_models.py class Project (line 6) | class Project(PolymorphicModel): class ArtProject (line 10) | class ArtProject(Project): class ResearchProject (line 14) | class ResearchProject(Project): FILE: src/polymorphic/tests/examples/integrations/drf/models/filters.py class Annotator (line 10) | class Annotator(PolymorphicModel): class UserAnnotator (line 14) | class UserAnnotator(Annotator): class AiModelAnnotator (line 20) | class AiModelAnnotator(Annotator): class Data (line 25) | class Data(models.Model): FILE: src/polymorphic/tests/examples/integrations/drf/models/models_test.py class BlogBase (line 6) | class BlogBase(PolymorphicModel): class BlogOne (line 11) | class BlogOne(BlogBase): class BlogTwo (line 15) | class BlogTwo(BlogBase): class BlogThree (line 19) | class BlogThree(BlogBase): class Meta (line 23) | class Meta: FILE: src/polymorphic/tests/examples/integrations/drf/serializers.py class BlogBaseSerializer (line 8) | class BlogBaseSerializer(serializers.ModelSerializer): class Meta (line 9) | class Meta: class BlogOneSerializer (line 14) | class BlogOneSerializer(serializers.ModelSerializer): class Meta (line 15) | class Meta: class BlogTwoSerializer (line 20) | class BlogTwoSerializer(serializers.ModelSerializer): class Meta (line 21) | class Meta: class BlogThreeSerializer (line 26) | class BlogThreeSerializer(serializers.ModelSerializer): class Meta (line 27) | class Meta: class BlogPolymorphicSerializer (line 32) | class BlogPolymorphicSerializer(PolymorphicSerializer): FILE: src/polymorphic/tests/examples/integrations/drf/test.py class TestPolymorphicSerializer (line 31) | class TestPolymorphicSerializer: method test_model_serializer_mapping_is_none (line 32) | def test_model_serializer_mapping_is_none(self): method test_resource_type_field_name_is_not_string (line 44) | def test_resource_type_field_name_is_not_string(self, mocker): method test_each_serializer_has_context (line 56) | def test_each_serializer_has_context(self, mocker): method test_non_callable_serializer_in_mapping (line 62) | def test_non_callable_serializer_in_mapping(self): method test_serialize (line 132) | def test_serialize(self): method test_deserialize (line 141) | def test_deserialize(self): method test_deserialize_with_invalid_resourcetype (line 151) | def test_deserialize_with_invalid_resourcetype(self): method test_create (line 159) | def test_create(self): method test_update (line 183) | def test_update(self): method test_partial_update (line 198) | def test_partial_update(self): method test_partial_update_without_resourcetype (line 211) | def test_partial_update_without_resourcetype(self): method test_object_validators_are_applied (line 224) | def test_object_validators_are_applied(self): method test_to_internal_value_with_valid_data (line 245) | def test_to_internal_value_with_valid_data(self): method test_to_internal_value_with_missing_resourcetype (line 258) | def test_to_internal_value_with_missing_resourcetype(self): method test_to_internal_value_with_partial_update (line 273) | def test_to_internal_value_with_partial_update(self): method test_get_serializer_from_model_or_instance_raises_keyerror (line 285) | def test_get_serializer_from_model_or_instance_raises_keyerror(self): method test_get_serializer_from_resource_type_keyerror_propagation (line 301) | def test_get_serializer_from_resource_type_keyerror_propagation(self): method test_validate_method_modifications_are_preserved (line 333) | def test_validate_method_modifications_are_preserved(self): class TestProjectViewSet (line 399) | class TestProjectViewSet: method client (line 403) | def client(self): method base_project (line 407) | def base_project(self): method art_project (line 411) | def art_project(self): method research_project (line 415) | def research_project(self): method test_list_projects (line 420) | def test_list_projects( method test_retrieve_base_project (line 430) | def test_retrieve_base_project(self, client, base_project): method test_retrieve_art_project (line 438) | def test_retrieve_art_project(self, client, art_project): method test_retrieve_research_project (line 448) | def test_retrieve_research_project(self, client, research_project): method test_create_base_project (line 457) | def test_create_base_project(self, client): method test_create_art_project (line 471) | def test_create_art_project(self, client): method test_create_research_project (line 491) | def test_create_research_project(self, client): method test_update_project (line 510) | def test_update_project(self, client, base_project): method test_partial_update_art_project (line 523) | def test_partial_update_art_project(self, client, art_project): method test_partial_update_research_project (line 538) | def test_partial_update_research_project(self, client, research_project): method test_delete_project (line 553) | def test_delete_project(self, client, base_project): method test_create_with_invalid_resourcetype (line 562) | def test_create_with_invalid_resourcetype(self, client): class TestDjangoFiltersViewSet (line 570) | class TestDjangoFiltersViewSet: method client (line 574) | def client(self): method user (line 578) | def user(self, django_user_model): method user_annotator (line 584) | def user_annotator(self, user): method ai_annotator_gpt4 (line 590) | def ai_annotator_gpt4(self): method ai_annotator_claude (line 596) | def ai_annotator_claude(self): method data_by_user (line 604) | def data_by_user(self, user_annotator): method data_by_gpt4 (line 610) | def data_by_gpt4(self, ai_annotator_gpt4): method data_by_claude (line 616) | def data_by_claude(self, ai_annotator_claude): method test_list_all_annotations (line 621) | def test_list_all_annotations( method test_filter_by_annotator (line 629) | def test_filter_by_annotator( method test_filter_by_ai_model (line 640) | def test_filter_by_ai_model( method test_filter_by_different_ai_model (line 652) | def test_filter_by_different_ai_model( method test_filter_by_nonexistent_ai_model (line 663) | def test_filter_by_nonexistent_ai_model( method test_filter_excludes_non_ai_annotators (line 673) | def test_filter_excludes_non_ai_annotators( method test_retrieve_annotation (line 687) | def test_retrieve_annotation(self, client, data_by_gpt4): method test_create_annotation_with_user_annotator (line 695) | def test_create_annotation_with_user_annotator( method test_create_annotation_with_ai_annotator (line 712) | def test_create_annotation_with_ai_annotator( FILE: src/polymorphic/tests/examples/integrations/drf/views.py class ProjectViewSet (line 7) | class ProjectViewSet(viewsets.ModelViewSet): FILE: src/polymorphic/tests/examples/integrations/extra_views/apps.py class ExtraViewsExampleConfig (line 4) | class ExtraViewsExampleConfig(AppConfig): FILE: src/polymorphic/tests/examples/integrations/extra_views/templatetags/extra_views_tags.py function model_name (line 7) | def model_name(instance): FILE: src/polymorphic/tests/examples/integrations/extra_views/test.py class ExtraViewsIntegrationTests (line 19) | class ExtraViewsIntegrationTests(TestCase): method test_formset_children_configuration (line 29) | def test_formset_children_configuration(self): method test_formset_generation (line 40) | def test_formset_generation(self): method test_formset_with_existing_objects (line 53) | def test_formset_with_existing_objects(self): method test_formset_extra_forms_configuration (line 79) | def test_formset_extra_forms_configuration(self): method test_formset_saving_new_objects (line 102) | def test_formset_saving_new_objects(self): method test_formset_updating_objects (line 154) | def test_formset_updating_objects(self): method test_formset_deleting_objects (line 198) | def test_formset_deleting_objects(self): method test_formset_mixed_operations (line 239) | def test_formset_mixed_operations(self): class ExtraViewsUITests (line 319) | class ExtraViewsUITests(TestCase): method test_formset_view_get_request (line 322) | def test_formset_view_get_request(self): method test_formset_view_post_request (line 346) | def test_formset_view_post_request(self): class ExtraViewsLiveServerTests (line 383) | class ExtraViewsLiveServerTests(_GenericUITest): method setUp (line 386) | def setUp(self): method tearDown (line 390) | def tearDown(self): method test_formset_view_renders_existing_objects (line 395) | def test_formset_view_renders_existing_objects(self): method test_formset_update_existing_object (line 429) | def test_formset_update_existing_object(self): method test_formset_delete_existing_object (line 465) | def test_formset_delete_existing_object(self): method test_formset_displays_multiple_polymorphic_types (line 499) | def test_formset_displays_multiple_polymorphic_types(self): method test_formset_mixed_operations_through_ui (line 531) | def test_formset_mixed_operations_through_ui(self): method test_formset_empty_state_shows_extra_forms (line 579) | def test_formset_empty_state_shows_extra_forms(self): method test_formset_create_new_objects_via_extra_forms (line 617) | def test_formset_create_new_objects_via_extra_forms(self): FILE: src/polymorphic/tests/examples/integrations/extra_views/views.py class ArticleFormSetView (line 7) | class ArticleFormSetView(PolymorphicFormSetView): FILE: src/polymorphic/tests/examples/integrations/guardian/apps.py class GuardianExampleConfig (line 4) | class GuardianExampleConfig(AppConfig): FILE: src/polymorphic/tests/examples/integrations/guardian/test.py class GuardianIntegrationTests (line 22) | class GuardianIntegrationTests(TestCase): method setUp (line 36) | def setUp(self): method test_non_polymorphic_model (line 48) | def test_non_polymorphic_model(self): method test_get_polymorphic_base_content_type_for_child_model (line 57) | def test_get_polymorphic_base_content_type_for_child_model(self): method test_get_polymorphic_base_content_type_for_different_child_models (line 70) | def test_get_polymorphic_base_content_type_for_different_child_models( method test_get_polymorphic_base_content_type_for_base_model (line 81) | def test_get_polymorphic_base_content_type_for_base_model(self): method test_get_polymorphic_base_content_type_for_non_polymorphic_model (line 94) | def test_get_polymorphic_base_content_type_for_non_polymorphic_model( method test_get_polymorphic_base_content_type_with_model_class (line 103) | def test_get_polymorphic_base_content_type_with_model_class(self): method test_content_type_consistency_across_inheritance_chain (line 113) | def test_content_type_consistency_across_inheritance_chain(self): method test_get_polymorphic_base_content_type_with_instance_and_class (line 126) | def test_get_polymorphic_base_content_type_with_instance_and_class( method test_get_polymorphic_base_content_type_returns_content_type_object (line 140) | def test_get_polymorphic_base_content_type_returns_content_type_object( method test_guardian_permissions_use_base_model_namespace (line 148) | def test_guardian_permissions_use_base_model_namespace(self): FILE: src/polymorphic/tests/examples/integrations/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/integrations/models.py class Article (line 5) | class Article(PolymorphicModel): method __str__ (line 10) | def __str__(self): class BlogPost (line 14) | class BlogPost(Article): class NewsArticle (line 18) | class NewsArticle(Article): FILE: src/polymorphic/tests/examples/integrations/reversion/admin.py class ArticleChildAdmin (line 10) | class ArticleChildAdmin(PolymorphicChildModelAdmin, VersionAdmin): class BlogPostAdmin (line 15) | class BlogPostAdmin(ArticleChildAdmin): class NewsArticleAdmin (line 20) | class NewsArticleAdmin(ArticleChildAdmin): class ArticleParentAdmin (line 24) | class ArticleParentAdmin(VersionAdmin, PolymorphicParentModelAdmin): FILE: src/polymorphic/tests/examples/integrations/reversion/apps.py class ReversionExampleConfig (line 4) | class ReversionExampleConfig(AppConfig): FILE: src/polymorphic/tests/examples/integrations/reversion/test.py class ReversionIntegrationTests (line 21) | class ReversionIntegrationTests(TestCase): method test_blogpost_versioning (line 31) | def test_blogpost_versioning(self): method test_newsarticle_versioning (line 64) | def test_newsarticle_versioning(self): method test_polymorphic_queryset_with_versioned_objects (line 89) | def test_polymorphic_queryset_with_versioned_objects(self): method test_revert_to_previous_version (line 117) | def test_revert_to_previous_version(self): method test_manual_reversion_workflow (line 154) | def test_manual_reversion_workflow(self): method test_manual_newsarticle_reversion_with_deletion (line 226) | def test_manual_newsarticle_reversion_with_deletion(self): method test_manual_batch_reversion (line 269) | def test_manual_batch_reversion(self): class ReversionAdminUITests (line 321) | class ReversionAdminUITests(_GenericUITest): method test_blogpost_admin_reversion (line 324) | def test_blogpost_admin_reversion(self): method test_article_admin_reversion (line 433) | def test_article_admin_reversion(self): method test_newsarticle_admin_reversion (line 505) | def test_newsarticle_admin_reversion(self): FILE: src/polymorphic/tests/examples/type_hints/fk/apps.py class TypeHintsFKConfig (line 4) | class TypeHintsFKConfig(AppConfig): FILE: src/polymorphic/tests/examples/type_hints/fk/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/type_hints/fk/models.py class ParentModel (line 10) | class ParentModel(PolymorphicModel): class Child1 (line 16) | class Child1(ParentModel): class Child2 (line 20) | class Child2(Child1): class RelatedModel (line 24) | class RelatedModel(models.Model): FILE: src/polymorphic/tests/examples/type_hints/fk/test.py class TypeHintsFKTest (line 7) | class TypeHintsFKTest(TestCase): method test_type_hints (line 8) | def test_type_hints(self): FILE: src/polymorphic/tests/examples/type_hints/m2m/apps.py class TypeHintsM2MConfig (line 4) | class TypeHintsM2MConfig(AppConfig): FILE: src/polymorphic/tests/examples/type_hints/m2m/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/type_hints/m2m/models.py class ParentModel (line 13) | class ParentModel(PolymorphicModel): class Child1 (line 27) | class Child1(ParentModel): class Child2 (line 31) | class Child2(Child1): class PolyThrough (line 35) | class PolyThrough(PolymorphicModel): class ThroughChild (line 49) | class ThroughChild(PolyThrough): class RelatedModel (line 53) | class RelatedModel(models.Model): FILE: src/polymorphic/tests/examples/type_hints/m2m/test.py class TypeHintsM2MTest (line 16) | class TypeHintsM2MTest(TestCase): method test_type_hints (line 17) | def test_type_hints(self): FILE: src/polymorphic/tests/examples/type_hints/managers/apps.py class TypeHintsManagersConfig (line 4) | class TypeHintsManagersConfig(AppConfig): FILE: src/polymorphic/tests/examples/type_hints/managers/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/type_hints/managers/models.py class ParentModel (line 8) | class ParentModel(PolymorphicModel): class Child1 (line 21) | class Child1(ParentModel): class Child2 (line 27) | class Child2(Child1): FILE: src/polymorphic/tests/examples/type_hints/managers/test.py class TypeHintsManagersTest (line 6) | class TypeHintsManagersTest(TestCase): method test_type_hints (line 7) | def test_type_hints(self): FILE: src/polymorphic/tests/examples/type_hints/one2one/apps.py class TypeHintsOne2OneConfig (line 4) | class TypeHintsOne2OneConfig(AppConfig): FILE: src/polymorphic/tests/examples/type_hints/one2one/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/type_hints/one2one/models.py class ParentModel (line 10) | class ParentModel(PolymorphicModel): class Child1 (line 16) | class Child1(ParentModel): class Child2 (line 20) | class Child2(Child1): class RelatedModel (line 24) | class RelatedModel(models.Model): FILE: src/polymorphic/tests/examples/type_hints/one2one/test.py class TypeHintsOne2OneTest (line 11) | class TypeHintsOne2OneTest(TestCase): method test_type_hints (line 12) | def test_type_hints(self): FILE: src/polymorphic/tests/examples/views/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/examples/views/models.py class Project (line 5) | class Project(PolymorphicModel): class ArtProject (line 9) | class ArtProject(Project): class ResearchProject (line 13) | class ResearchProject(Project): FILE: src/polymorphic/tests/examples/views/test.py class ViewExampleTests (line 8) | class ViewExampleTests(_GenericUITest): method test_view_example (line 9) | def test_view_example(self): FILE: src/polymorphic/tests/examples/views/views.py class ProjectTypeChoiceForm (line 11) | class ProjectTypeChoiceForm(forms.Form): class ProjectTypeSelectView (line 18) | class ProjectTypeSelectView(FormView): method get_form_kwargs (line 22) | def get_form_kwargs(self): method get_form (line 32) | def get_form(self, form_class=None): method form_valid (line 42) | def form_valid(self, form): class ProjectCreateView (line 47) | class ProjectCreateView(CreateView): method get_success_url (line 51) | def get_success_url(self): method get_form_class (line 54) | def get_form_class(self): method get_context_data (line 73) | def get_context_data(self, **kwargs): FILE: src/polymorphic/tests/migrations/0001_initial.py class Migration (line 12) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/models.py class PlainA (line 19) | class PlainA(models.Model): method __str__ (line 22) | def __str__(self): class PlainB (line 26) | class PlainB(PlainA): class PlainC (line 30) | class PlainC(PlainB): class PlainD (line 34) | class PlainD(PlainA): class Model2A (line 38) | class Model2A(ShowFieldType, PolymorphicModel): class RandomMixinB (line 43) | class RandomMixinB: method random_method (line 44) | def random_method(self): class Model2B (line 48) | class Model2B(RandomMixinB, Model2A): class RandomMixinC (line 52) | class RandomMixinC: method random_method (line 53) | def random_method(self): class Model2C (line 57) | class Model2C(RandomMixinC, Model2B): class Model2D (line 61) | class Model2D(Model2C): class ModelExtraA (line 65) | class ModelExtraA(ShowFieldTypeAndContent, PolymorphicModel): class ModelExtraB (line 69) | class ModelExtraB(ModelExtraA): class ModelExtraC (line 73) | class ModelExtraC(ModelExtraB): class ModelExtraExternal (line 77) | class ModelExtraExternal(models.Model): class ModelShow1 (line 81) | class ModelShow1(ShowFieldType, PolymorphicModel): class ModelShow2 (line 86) | class ModelShow2(ShowFieldContent, PolymorphicModel): class ModelShow3 (line 91) | class ModelShow3(ShowFieldTypeAndContent, PolymorphicModel): class ModelShow1_plain (line 96) | class ModelShow1_plain(PolymorphicModel): class ModelShow2_plain (line 100) | class ModelShow2_plain(ModelShow1_plain): class Base (line 104) | class Base(ShowFieldType, PolymorphicModel): class ModelX (line 109) | class ModelX(Base): class ModelY (line 113) | class ModelY(Base): class Enhance_Plain (line 117) | class Enhance_Plain(models.Model): class Enhance_Base (line 121) | class Enhance_Base(ShowFieldTypeAndContent, PolymorphicModel): class Enhance_Inherit (line 126) | class Enhance_Inherit(Enhance_Base, Enhance_Plain): class RelationAbstractModel (line 130) | class RelationAbstractModel(models.Model): class Meta (line 131) | class Meta: class RelationBase (line 135) | class RelationBase(RelationAbstractModel, ShowFieldTypeAndContent, Polym... class RelationA (line 143) | class RelationA(RelationBase): class RelationB (line 147) | class RelationB(RelationBase): class RelationBC (line 151) | class RelationBC(RelationB): class RelatingModel (line 155) | class RelatingModel(models.Model): class One2OneRelatingModel (line 159) | class One2OneRelatingModel(PolymorphicModel): class One2OneRelatingModelDerived (line 164) | class One2OneRelatingModelDerived(One2OneRelatingModel): class ModelUnderRelParent (line 168) | class ModelUnderRelParent(PolymorphicModel): class ModelUnderRelChild (line 173) | class ModelUnderRelChild(PolymorphicModel): class MyManagerQuerySet (line 180) | class MyManagerQuerySet(PolymorphicQuerySet): method my_queryset_foo (line 181) | def my_queryset_foo(self): class MyManager (line 186) | class MyManager(PolymorphicManager): method get_queryset (line 189) | def get_queryset(self): method my_queryset_foo (line 192) | def my_queryset_foo(self): class ModelWithMyManager (line 196) | class ModelWithMyManager(ShowFieldTypeAndContent, Model2A): class ModelWithMyManagerNoDefault (line 201) | class ModelWithMyManagerNoDefault(ShowFieldTypeAndContent, Model2A): class ModelWithMyManagerDefault (line 207) | class ModelWithMyManagerDefault(ShowFieldTypeAndContent, Model2A): class ModelWithMyManager2 (line 213) | class ModelWithMyManager2(ShowFieldTypeAndContent, Model2A): class ModelArticle (line 218) | class ModelArticle(PolymorphicModel): class ModelPackage (line 222) | class ModelPackage(ModelArticle): class ModelComponent (line 226) | class ModelComponent(ModelArticle): class ModelOrderLine (line 230) | class ModelOrderLine(models.Model): class MROBase1 (line 234) | class MROBase1(ShowFieldType, PolymorphicModel): class MROBase2 (line 239) | class MROBase2(MROBase1): class MROBase3 (line 244) | class MROBase3(models.Model): class MRODerived (line 250) | class MRODerived(MROBase2, MROBase3): class ParentModelWithManager (line 254) | class ParentModelWithManager(PolymorphicModel): class ChildModelWithManager (line 258) | class ChildModelWithManager(PolymorphicModel): class PlainMyManagerQuerySet (line 267) | class PlainMyManagerQuerySet(QuerySet): method my_queryset_foo (line 268) | def my_queryset_foo(self): class PlainMyManager (line 273) | class PlainMyManager(models.Manager): method my_queryset_foo (line 274) | def my_queryset_foo(self): method get_queryset (line 277) | def get_queryset(self): class PlainParentModelWithManager (line 281) | class PlainParentModelWithManager(models.Model): class PlainChildModelWithManager (line 285) | class PlainChildModelWithManager(models.Model): class BlogBase (line 294) | class BlogBase(ShowFieldTypeAndContent, PolymorphicModel): class BlogA (line 298) | class BlogA(BlogBase): class BlogB (line 302) | class BlogB(BlogBase): class BlogEntry (line 306) | class BlogEntry(ShowFieldTypeAndContent, PolymorphicModel): class BlogEntry_limit_choices_to (line 311) | class BlogEntry_limit_choices_to(ShowFieldTypeAndContent, PolymorphicMod... class ModelFieldNameTest (line 316) | class ModelFieldNameTest(ShowFieldType, PolymorphicModel): class InitTestModel (line 320) | class InitTestModel(ShowFieldType, PolymorphicModel): method __init__ (line 323) | def __init__(self, *args, **kwargs): class InitTestModelSubclass (line 328) | class InitTestModelSubclass(InitTestModel): method x (line 329) | def x(self): class Top (line 336) | class Top(PolymorphicModel): class Middle (line 340) | class Middle(Top): class Bottom (line 344) | class Bottom(Middle): class UUIDProject (line 348) | class UUIDProject(ShowFieldTypeAndContent, PolymorphicModel): class UUIDArtProject (line 353) | class UUIDArtProject(UUIDProject): class UUIDResearchProject (line 357) | class UUIDResearchProject(UUIDProject): class UUIDArtProjectA (line 361) | class UUIDArtProjectA(UUIDArtProject): ... class UUIDArtProjectB (line 364) | class UUIDArtProjectB(UUIDArtProjectA): ... class UUIDArtProjectC (line 367) | class UUIDArtProjectC(UUIDArtProjectB): ... class UUIDArtProjectD (line 370) | class UUIDArtProjectD(UUIDArtProjectC): ... class UUIDPlainA (line 373) | class UUIDPlainA(models.Model): class UUIDPlainB (line 378) | class UUIDPlainB(UUIDPlainA): class UUIDPlainC (line 382) | class UUIDPlainC(UUIDPlainB): class ProxyBase (line 389) | class ProxyBase(PolymorphicModel): class ProxyChild (line 393) | class ProxyChild(ProxyBase): class Meta (line 394) | class Meta: class NonProxyChild (line 398) | class NonProxyChild(ProxyBase): class ProxiedBase (line 405) | class ProxiedBase(ShowFieldTypeAndContent, PolymorphicModel): class ProxyModelBase (line 409) | class ProxyModelBase(ProxiedBase): class Meta (line 410) | class Meta: class ProxyModelA (line 414) | class ProxyModelA(ProxyModelBase): class ProxyModelB (line 418) | class ProxyModelB(ProxyModelBase): class RelatedNameClash (line 430) | class RelatedNameClash(ShowFieldType, PolymorphicModel): class ParentLinkAndRelatedName (line 437) | class ParentLinkAndRelatedName(ModelShow1_plain): class CustomPkBase (line 446) | class CustomPkBase(ShowFieldTypeAndContent, PolymorphicModel): class CustomPkInherit (line 450) | class CustomPkInherit(CustomPkBase): class DateModel (line 455) | class DateModel(PolymorphicModel): class AbstractModel (line 461) | class AbstractModel(PolymorphicModel): class Meta (line 462) | class Meta: class SwappableModel (line 466) | class SwappableModel(AbstractModel): class Meta (line 467) | class Meta: class SwappedModel (line 471) | class SwappedModel(AbstractModel): class InlineParent (line 475) | class InlineParent(models.Model): class InlineModelA (line 479) | class InlineModelA(PolymorphicModel): class InlineModelB (line 486) | class InlineModelB(InlineModelA): class AbstractProject (line 502) | class AbstractProject(PolymorphicModel): class Meta (line 505) | class Meta: class ArtProject (line 509) | class ArtProject(AbstractProject): class Duck (line 513) | class Duck(PolymorphicModel): class RedheadDuck (line 517) | class RedheadDuck(Duck): class Meta (line 518) | class Meta: class RubberDuck (line 522) | class RubberDuck(Duck): class Meta (line 523) | class Meta: class MultiTableBase (line 527) | class MultiTableBase(PolymorphicModel): class MultiTableDerived (line 531) | class MultiTableDerived(MultiTableBase): class SubclassSelectorAbstractBaseModel (line 535) | class SubclassSelectorAbstractBaseModel(PolymorphicModel): class SubclassSelectorAbstractModel (line 539) | class SubclassSelectorAbstractModel(SubclassSelectorAbstractBaseModel): class Meta (line 542) | class Meta: class SubclassSelectorAbstractConcreteModel (line 546) | class SubclassSelectorAbstractConcreteModel(SubclassSelectorAbstractModel): class SubclassSelectorProxyBaseModel (line 550) | class SubclassSelectorProxyBaseModel(PolymorphicModel): class SubclassSelectorProxyModel (line 554) | class SubclassSelectorProxyModel(SubclassSelectorProxyBaseModel): class Meta (line 555) | class Meta: class SubclassSelectorProxyConcreteModel (line 559) | class SubclassSelectorProxyConcreteModel(SubclassSelectorProxyModel): class NonPolymorphicParent (line 563) | class NonPolymorphicParent(PolymorphicModel, Group): class Participant (line 567) | class Participant(PolymorphicModel): class UserProfile (line 571) | class UserProfile(Participant): method __str__ (line 574) | def __str__(self): class Team (line 578) | class Team(models.Model): class BlueHeadDuck (line 583) | class BlueHeadDuck(Duck): method __init__ (line 584) | def __init__(self, *args, **kwargs): class HomeDuck (line 589) | class HomeDuck(models.Model): method __init__ (line 590) | def __init__(self, *args, **kwargs): class Meta (line 594) | class Meta: class PurpleHeadDuck (line 598) | class PurpleHeadDuck(HomeDuck, BlueHeadDuck): class Meta (line 599) | class Meta: class Account (line 603) | class Account(PolymorphicModel): class SpecialAccount1 (line 609) | class SpecialAccount1(Account): class SpecialAccount1_1 (line 613) | class SpecialAccount1_1(SpecialAccount1): class SpecialAccount2 (line 617) | class SpecialAccount2(Account): class ModelMixin (line 621) | class ModelMixin(models.Model): class Meta (line 622) | class Meta: class PolymorphicMixin (line 629) | class PolymorphicMixin(PolymorphicModel): class Meta (line 630) | class Meta: class Foo (line 637) | class Foo(PolymorphicModel): class Bar (line 641) | class Bar(PolymorphicMixin, PolymorphicModel): class Baz (line 645) | class Baz(ModelMixin, PolymorphicModel): class MyBaseQuerySet (line 649) | class MyBaseQuerySet(PolymorphicQuerySet): method filter_by_user (line 650) | def filter_by_user(self, _): class MyBaseModel (line 654) | class MyBaseModel(PolymorphicModel): class MyChild1QuerySet (line 659) | class MyChild1QuerySet(MyBaseQuerySet): method filter_by_user (line 660) | def filter_by_user(self, num): class MyChild1Model (line 664) | class MyChild1Model(MyBaseModel): class MyChild2QuerySet (line 670) | class MyChild2QuerySet(MyBaseQuerySet): method filter_by_user (line 671) | def filter_by_user(self, num): class MyChild2Model (line 675) | class MyChild2Model(MyBaseModel): class SpecialQuerySet (line 682) | class SpecialQuerySet(PolymorphicQuerySet): method has_text (line 683) | def has_text(self, text): class SpecialPolymorphicManager (line 687) | class SpecialPolymorphicManager(PolymorphicManager.from_queryset(Special... method custom_queryset (line 688) | def custom_queryset(self): class AbstractManagerTest (line 692) | class AbstractManagerTest(PolymorphicModel): class Meta (line 703) | class Meta: class RelatedManagerTest (line 707) | class RelatedManagerTest(models.Model): ... class DerivedManagerTest (line 710) | class DerivedManagerTest(AbstractManagerTest): class DerivedManagerTest2 (line 720) | class DerivedManagerTest2(DerivedManagerTest): class FKTestBase (line 724) | class FKTestBase(PolymorphicModel): ... class FKTestChild (line 727) | class FKTestChild(Base): ... class FKTest (line 730) | class FKTest(models.Model): class NoChildren (line 734) | class NoChildren(PolymorphicModel): class ModelWithPolyFK (line 738) | class ModelWithPolyFK(models.Model): class NormalBase (line 745) | class NormalBase(models.Model): method add_to_nb (line 748) | def add_to_nb(self, value): class NormalExtension (line 753) | class NormalExtension(NormalBase): method add_to_ne (line 756) | def add_to_ne(self, value): class PolyExtension (line 761) | class PolyExtension(PolymorphicModel, NormalExtension): method add_to_ext (line 764) | def add_to_ext(self, value): class PolyExtChild (line 769) | class PolyExtChild(PolyExtension): method add_to_child (line 772) | def add_to_child(self, value): method override_add_to_ne (line 776) | def override_add_to_ne(self, value): method override_add_to_ext (line 781) | def override_add_to_ext(self, value): class DeepCopyTester (line 787) | class DeepCopyTester(PolymorphicModel): class DeepCopyTester2 (line 791) | class DeepCopyTester2(DeepCopyTester): class DucksLake (line 795) | class DucksLake(models.Model): class Lake (line 801) | class Lake(models.Model): class LakeWithThrough (line 805) | class LakeWithThrough(models.Model): class ChoiceBlank (line 809) | class ChoiceBlank(PolymorphicModel): class ChoiceAthlete (line 813) | class ChoiceAthlete(ChoiceBlank): class BetMultiple (line 817) | class BetMultiple(models.Model): class RankedAthlete (line 821) | class RankedAthlete(models.Model): class RecursionBug (line 827) | class RecursionBug(PolymorphicModel): method __init__ (line 830) | def __init__(self, *args, **kwargs): class TaggedItem (line 838) | class TaggedItem(models.Model): class BookmarkManager (line 845) | class BookmarkManager(PolymorphicManager): method get_queryset (line 846) | def get_queryset(self) -> PolymorphicQuerySet: class Bookmark (line 850) | class Bookmark(PolymorphicModel): class Assignment (line 856) | class Assignment(Bookmark): class Regression295Related (line 860) | class Regression295Related(models.Model): class Regression295Parent (line 864) | class Regression295Parent(PolymorphicModel): class RelatedKeyModel (line 868) | class RelatedKeyModel(models.Model): class DisparateKeysParent (line 872) | class DisparateKeysParent(PolymorphicModel): class DisparateKeysChild1 (line 876) | class DisparateKeysChild1(DisparateKeysParent): class DisparateKeysChild2 (line 882) | class DisparateKeysChild2(DisparateKeysParent): class DisparateKeysGrandChild2 (line 887) | class DisparateKeysGrandChild2(DisparateKeysChild2): class DisparateKeysGrandChild (line 891) | class DisparateKeysGrandChild(DisparateKeysChild1): class M2MAdminTest (line 895) | class M2MAdminTest(PolymorphicModel): method __str__ (line 898) | def __str__(self): class M2MAdminTestChildA (line 902) | class M2MAdminTestChildA(M2MAdminTest): class M2MAdminTestChildB (line 906) | class M2MAdminTestChildB(M2MAdminTest): class M2MAdminTestChildC (line 910) | class M2MAdminTestChildC(M2MAdminTestChildB): class M2MThroughBase (line 915) | class M2MThroughBase(PolymorphicModel): method __str__ (line 920) | def __str__(self): class M2MThroughPerson (line 924) | class M2MThroughPerson(M2MThroughBase): class M2MThroughSpecialPerson (line 930) | class M2MThroughSpecialPerson(M2MThroughPerson): class M2MThroughProject (line 936) | class M2MThroughProject(M2MThroughBase): class M2MThroughProjectWithTeam (line 942) | class M2MThroughProjectWithTeam(M2MThroughProject): class M2MThroughMembership (line 951) | class M2MThroughMembership(PolymorphicModel): method __str__ (line 959) | def __str__(self): class M2MThroughMembershipWithPerson (line 963) | class M2MThroughMembershipWithPerson(M2MThroughMembership): class M2MThroughMembershipWithSpecialPerson (line 969) | class M2MThroughMembershipWithSpecialPerson(M2MThroughMembership): class DirectM2MContainer (line 985) | class DirectM2MContainer(models.Model): method __str__ (line 991) | def __str__(self): class Author (line 995) | class Author(models.Model): class Book (line 999) | class Book(PolymorphicModel): class SpecialBook (line 1003) | class SpecialBook(Book): class FilteredManager (line 1007) | class FilteredManager(PolymorphicManager): method get_queryset (line 1008) | def get_queryset(self): class Model2BFiltered (line 1012) | class Model2BFiltered(Model2B): class Model2CFiltered (line 1016) | class Model2CFiltered(Model2BFiltered): class CustomBaseManager (line 1020) | class CustomBaseManager(PolymorphicManager): class FilteredManager2 (line 1024) | class FilteredManager2(FilteredManager): class Model2CNamedManagers (line 1028) | class Model2CNamedManagers(Model2CFiltered): class Meta (line 1032) | class Meta: class Model2CNamedDefault (line 1037) | class Model2CNamedDefault(Model2CFiltered): class Meta (line 1040) | class Meta: class NatKeyManager (line 1045) | class NatKeyManager(PolymorphicManager): method get_by_natural_key (line 1046) | def get_by_natural_key(self, slug): class NatKeyParent (line 1050) | class NatKeyParent(PolymorphicModel): method natural_key (line 1056) | def natural_key(self): class NatKeyChild (line 1060) | class NatKeyChild(NatKeyParent): method natural_key (line 1064) | def natural_key(self): class ManagerTest (line 1070) | class ManagerTest(PolymorphicModel): class Meta (line 1075) | class Meta: class ManagerTestChild (line 1079) | class ManagerTestChild(ManagerTest): class PlainManager (line 1083) | class PlainManager(models.Manager): ... class ManagerTestPlain (line 1086) | class ManagerTestPlain(models.Model): class Meta (line 1089) | class Meta: class ManagerTestChildPlain (line 1093) | class ManagerTestChildPlain(ManagerTestPlain): class GenericFKParent (line 1098) | class GenericFKParent(models.Model): method __str__ (line 1103) | def __str__(self): class PolymorphicTagBase (line 1107) | class PolymorphicTagBase(PolymorphicModel): method __str__ (line 1115) | def __str__(self): class PolymorphicTagA (line 1119) | class PolymorphicTagA(PolymorphicTagBase): class PolymorphicTagB (line 1125) | class PolymorphicTagB(PolymorphicTagBase): FILE: src/polymorphic/tests/other/migrations/0001_initial.py class Migration (line 7) | class Migration(migrations.Migration): FILE: src/polymorphic/tests/other/models.py class UserProfile (line 5) | class UserProfile(Participant): method __str__ (line 11) | def __str__(self): FILE: src/polymorphic/tests/other/test_cross_apps.py class TestCrossAppSubclasses (line 5) | class TestCrossAppSubclasses(TestCase): method test_samename_different_app_subclasses (line 6) | def test_samename_different_app_subclasses(self): FILE: src/polymorphic/tests/test_admin.py class FileFieldInlineA (line 42) | class FileFieldInlineA(StackedPolymorphicInline.Child): class FileFieldInlineB (line 46) | class FileFieldInlineB(StackedPolymorphicInline.Child): class FileFieldInline (line 50) | class FileFieldInline(StackedPolymorphicInline): class FileFieldParentAdmin (line 55) | class FileFieldParentAdmin(PolymorphicInlineSupportMixin, admin.ModelAdm... class PolymorphicAdminTests (line 59) | class PolymorphicAdminTests(AdminTestCase): method test_admin_registration (line 60) | def test_admin_registration(self): method test_get_child_inlines (line 121) | def test_get_child_inlines(self): method test_show_in_index (line 130) | def test_show_in_index(self): method test_show_in_index_custom_site (line 182) | def test_show_in_index_custom_site(self): method test_get_model_perms_hidden (line 220) | def test_get_model_perms_hidden(self): method test_admin_inlines (line 242) | def test_admin_inlines(self): method test_render_change_form_sets_has_file_field (line 299) | def test_render_change_form_sets_has_file_field(self): class _GenericAdminFormTest (line 336) | class _GenericAdminFormTest(_GenericUITest): method admin_url (line 339) | def admin_url(self): method add_url (line 342) | def add_url(self, model): method change_url (line 346) | def change_url(self, model, id): method list_url (line 353) | def list_url(self, model): method get_object_ids (line 357) | def get_object_ids(self, model): class StackedInlineTests (line 364) | class StackedInlineTests(_GenericAdminFormTest): method test_admin_inline_add_autocomplete (line 365) | def test_admin_inline_add_autocomplete(self): method test_inline_form_ordering_and_removal (line 410) | def test_inline_form_ordering_and_removal(self): method test_polymorphic_inline_file_upload (line 475) | def test_polymorphic_inline_file_upload(self): class PolymorphicFormTests (line 577) | class PolymorphicFormTests(_GenericAdminFormTest): method test_admin_polymorphic_add (line 578) | def test_admin_polymorphic_add(self): method test_admin_popup_validation_error (line 653) | def test_admin_popup_validation_error(self): class PolymorphicNoChildrenTests (line 751) | class PolymorphicNoChildrenTests(_GenericAdminFormTest): method test_admin_no_polymorphic_children (line 752) | def test_admin_no_polymorphic_children(self): class AdminRecentActionsTests (line 767) | class AdminRecentActionsTests(_GenericAdminFormTest): method test_admin_recent_actions (line 768) | def test_admin_recent_actions(self): class AdminPreservedFiltersTests (line 853) | class AdminPreservedFiltersTests(_GenericAdminFormTest): method test_changelist_filter_persists_after_edit (line 854) | def test_changelist_filter_persists_after_edit(self): class M2MAdminTests (line 913) | class M2MAdminTests(_GenericAdminFormTest): method test_m2m_admin_raw_id_fields (line 914) | def test_m2m_admin_raw_id_fields(self): method test_issue_182_m2m_field_to_polymorphic_model (line 1065) | def test_issue_182_m2m_field_to_polymorphic_model(self): method test_issue_375_m2m_polymorphic_with_through_model (line 1184) | def test_issue_375_m2m_polymorphic_with_through_model(self): class PolymorphicAdminCoverageTests (line 1339) | class PolymorphicAdminCoverageTests(AdminTestCase): method test_get_child_models_not_implemented (line 1344) | def test_get_child_models_not_implemented(self): method test_lazy_setup_old_format (line 1354) | def test_lazy_setup_old_format(self): method test_get_real_admin_nonexistent_pk (line 1366) | def test_get_real_admin_nonexistent_pk(self): method test_get_real_admin_by_ct_nonexistent (line 1384) | def test_get_real_admin_by_ct_nonexistent(self): method test_get_real_admin_by_ct_deleted_model (line 1404) | def test_get_real_admin_by_ct_deleted_model(self): method test_get_real_admin_by_model_permission_denied (line 1429) | def test_get_real_admin_by_model_permission_denied(self): method test_child_admin_not_registered (line 1447) | def test_child_admin_not_registered(self): method test_real_admin_is_self_returns_super (line 1466) | def test_real_admin_is_self_returns_super(self): method test_get_queryset_polymorphic_list_true (line 1484) | def test_get_queryset_polymorphic_list_true(self): method test_get_child_type_choices_skips_no_permission (line 1506) | def test_get_child_type_choices_skips_no_permission(self): method test_add_type_view_no_add_permission (line 1536) | def test_add_type_view_no_add_permission(self): method test_add_type_view_no_choices_permission_denied (line 1557) | def test_add_type_view_no_choices_permission_denied(self): method test_child_admin_get_form_with_fieldsets (line 1580) | def test_child_admin_get_form_with_fieldsets(self): method test_child_admin_get_parent_admin_self_is_parent (line 1599) | def test_child_admin_get_parent_admin_self_is_parent(self): method test_child_admin_get_parent_admin_mro_scan (line 1613) | def test_child_admin_get_parent_admin_mro_scan(self): method test_child_admin_get_parent_admin_not_registered (line 1632) | def test_child_admin_get_parent_admin_not_registered(self): method test_child_admin_history_view_extra_context (line 1644) | def test_child_admin_history_view_extra_context(self): method test_child_admin_get_fieldsets_no_subclass_fields (line 1662) | def test_child_admin_get_fieldsets_no_subclass_fields(self): method test_child_admin_get_subclass_fields_with_tuple_field (line 1684) | def test_child_admin_get_subclass_fields_with_tuple_field(self): method test_child_admin_get_subclass_fields_missing_field (line 1707) | def test_child_admin_get_subclass_fields_missing_field(self): method test_filter_queryset_type_error (line 1729) | def test_filter_queryset_type_error(self): method test_filter_queryset_permission_denied (line 1753) | def test_filter_queryset_permission_denied(self): method test_inline_parent_not_in_registry_skips_check (line 1779) | def test_inline_parent_not_in_registry_skips_check(self): method test_inline_improperly_configured_missing_mixin (line 1793) | def test_inline_improperly_configured_missing_mixin(self): method test_inline_unsupported_child_type (line 1811) | def test_inline_unsupported_child_type(self): method test_inline_get_fieldsets_with_fieldsets_set (line 1830) | def test_inline_get_fieldsets_with_fieldsets_set(self): method test_inline_get_fieldsets_empty (line 1847) | def test_inline_get_fieldsets_empty(self): method test_inline_get_fields_with_fields_set (line 1862) | def test_inline_get_fields_with_fields_set(self): method test_inline_get_fields_no_fields_returns_empty (line 1878) | def test_inline_get_fields_no_fields_returns_empty(self): method test_inline_child_get_formset_raises_runtime_error (line 1894) | def test_inline_child_get_formset_raises_runtime_error(self): method test_inline_child_get_fields_with_fields_set (line 1914) | def test_inline_child_get_fields_with_fields_set(self): method test_inline_child_exclude_in_formset (line 1934) | def test_inline_child_exclude_in_formset(self): method test_inline_child_form_meta_exclude (line 1956) | def test_inline_child_form_meta_exclude(self): method test_inline_media_different_child_media (line 1984) | def test_inline_media_different_child_media(self): method test_inline_get_inline_formsets_non_polymorphic (line 2013) | def test_inline_get_inline_formsets_non_polymorphic(self): method test_polymorphic_inline_admin_form_is_empty_false_no_prefix (line 2038) | def test_polymorphic_inline_admin_form_is_empty_false_no_prefix(self): method test_polymorphic_inline_admin_formset_init (line 2048) | def test_polymorphic_inline_admin_formset_init(self): method test_generic_polymorphic_inline_get_formset (line 2061) | def test_generic_polymorphic_inline_get_formset(self): class ExistingInlineTests (line 2093) | class ExistingInlineTests(_GenericAdminFormTest): method test_inline_change_form_with_existing_children (line 2099) | def test_inline_change_form_with_existing_children(self): FILE: src/polymorphic/tests/test_base.py class PrimaryKeyNameTest (line 19) | class PrimaryKeyNameTest(TestCase): method test_polymorphic_primary_key_name_correctness (line 20) | def test_polymorphic_primary_key_name_correctness(self): method test_multiple_inheritance_pk_name (line 54) | def test_multiple_inheritance_pk_name(self): FILE: src/polymorphic/tests/test_contrib.py class ContribTests (line 7) | class ContribTests(TestCase): method test_contrib_guardian (line 12) | def test_contrib_guardian(self): FILE: src/polymorphic/tests/test_formsets.py class PolymorphicFormSetChildTest (line 32) | class PolymorphicFormSetChildTest(TestCase): method test_content_type_property (line 35) | def test_content_type_property(self): method test_extra_exclude_parameter (line 43) | def test_extra_exclude_parameter(self): class PolymorphicModelFormSetTest (line 53) | class PolymorphicModelFormSetTest(TestCase): method setUp (line 56) | def setUp(self): method test_empty_form_property_raises_error (line 60) | def test_empty_form_property_raises_error(self): method test_error_no_child_forms (line 72) | def test_error_no_child_forms(self): method test_error_non_polymorphic_model (line 85) | def test_error_non_polymorphic_model(self): method test_error_unsupported_child_type (line 99) | def test_error_unsupported_child_type(self): method test_bound_formset_with_data (line 111) | def test_bound_formset_with_data(self): method test_extra_forms_cycle_child_types (line 147) | def test_extra_forms_cycle_child_types(self): method test_validation_error_missing_ctype (line 166) | def test_validation_error_missing_ctype(self): method test_unsupported_child_in_bound_data (line 187) | def test_unsupported_child_in_bound_data(self): method test_unbound_with_ctype_in_initial (line 210) | def test_unbound_with_ctype_in_initial(self): method test_child_form_kwargs (line 229) | def test_child_form_kwargs(self): method test_is_multipart_with_file_field (line 241) | def test_is_multipart_with_file_field(self): method test_media_aggregation (line 261) | def test_media_aggregation(self): class PolymorphicInlineFormSetTest (line 283) | class PolymorphicInlineFormSetTest(TestCase): method test_inline_formset_factory (line 286) | def test_inline_formset_factory(self): method test_inline_with_child_form_kwargs (line 304) | def test_inline_with_child_form_kwargs(self): class GenericPolymorphicFormSetChildTest (line 320) | class GenericPolymorphicFormSetChildTest(TestCase): method test_content_type_property (line 323) | def test_content_type_property(self): method test_ct_field_fk_field_defaults (line 331) | def test_ct_field_fk_field_defaults(self): method test_custom_ct_field_fk_field (line 337) | def test_custom_ct_field_fk_field(self): method test_get_form_excludes_gfk_fields (line 345) | def test_get_form_excludes_gfk_fields(self): method test_get_form_with_extra_exclude (line 358) | def test_get_form_with_extra_exclude(self): method test_get_form_invalid_ct_field_raises (line 370) | def test_get_form_invalid_ct_field_raises(self): class GenericPolymorphicInlineFormSetTest (line 380) | class GenericPolymorphicInlineFormSetTest(TestCase): method setUp (line 383) | def setUp(self): method test_factory_creates_functional_formset (line 387) | def test_factory_creates_functional_formset(self): method test_formset_gfk_fields_excluded (line 402) | def test_formset_gfk_fields_excluded(self): method test_extra_forms_cycle_child_types (line 418) | def test_extra_forms_cycle_child_types(self): method test_bound_formset_with_existing_objects (line 436) | def test_bound_formset_with_existing_objects(self): method test_formset_with_child_form_kwargs (line 484) | def test_formset_with_child_form_kwargs(self): method test_empty_forms_property (line 497) | def test_empty_forms_property(self): method test_empty_form_raises_runtime_error (line 516) | def test_empty_form_raises_runtime_error(self): method test_unsupported_child_type_in_bound_data (line 530) | def test_unsupported_child_type_in_bound_data(self): method test_validation_error_missing_ctype (line 554) | def test_validation_error_missing_ctype(self): method test_is_multipart_with_file_field (line 576) | def test_is_multipart_with_file_field(self): method test_media_aggregation (line 597) | def test_media_aggregation(self): method test_save_new_objects (line 619) | def test_save_new_objects(self): FILE: src/polymorphic/tests/test_inheritance.py class InheritanceTests (line 6) | class InheritanceTests(TestCase): method test_mixin_inherited_managers (line 7) | def test_mixin_inherited_managers(self): FILE: src/polymorphic/tests/test_migration_managers.py class TestRelatedManagersInMigrationState (line 9) | class TestRelatedManagersInMigrationState(MigratorTestCase): method test_migration_managers_are_nonpoly (line 18) | def test_migration_managers_are_nonpoly(self): FILE: src/polymorphic/tests/test_migrations/models.py function get_default_related (line 5) | def get_default_related(): class RelatedModel (line 10) | class RelatedModel(models.Model): class BasePolyModel (line 16) | class BasePolyModel(PolymorphicModel): class ChildPolyModel (line 25) | class ChildPolyModel(BasePolyModel): class GrandChildPolyModel (line 31) | class GrandChildPolyModel(ChildPolyModel): class ModelWithCascade (line 41) | class ModelWithCascade(PolymorphicModel): class ModelWithProtect (line 47) | class ModelWithProtect(PolymorphicModel): class ModelWithSetNull (line 53) | class ModelWithSetNull(PolymorphicModel): class ModelWithSetDefault (line 59) | class ModelWithSetDefault(PolymorphicModel): class ModelWithSet (line 67) | class ModelWithSet(PolymorphicModel): class ModelWithDoNothing (line 73) | class ModelWithDoNothing(PolymorphicModel): class ModelWithRestrict (line 79) | class ModelWithRestrict(PolymorphicModel): class ModelWithOneToOneCascade (line 88) | class ModelWithOneToOneCascade(PolymorphicModel): class ModelWithOneToOneProtect (line 94) | class ModelWithOneToOneProtect(PolymorphicModel): class ModelWithOneToOneSetNull (line 102) | class ModelWithOneToOneSetNull(PolymorphicModel): FILE: src/polymorphic/tests/test_migrations/test_on_delete.py class OnDeleteSerializationTest (line 21) | class OnDeleteSerializationTest(GeneratedMigrationsPerClassMixin, Transa... method state (line 29) | def state(self): method setUpClass (line 33) | def setUpClass(cls): method test_migration_managers_non_polymorphic (line 38) | def test_migration_managers_non_polymorphic(self): method test_foreign_keys_wrapped_with_PolymorphicGuard (line 92) | def test_foreign_keys_wrapped_with_PolymorphicGuard(self): method test_one_to_one_wrapped_with_PolymorphicGuard (line 127) | def test_one_to_one_wrapped_with_PolymorphicGuard(self): method test_cascade_serialization (line 153) | def test_cascade_serialization(self): method test_protect_serialization (line 167) | def test_protect_serialization(self): method test_set_null_serialization (line 179) | def test_set_null_serialization(self): method test_set_default_serialization (line 191) | def test_set_default_serialization(self): method test_set_callable_serialization (line 203) | def test_set_callable_serialization(self): method test_do_nothing_serialization (line 217) | def test_do_nothing_serialization(self): method test_restrict_serialization (line 229) | def test_restrict_serialization(self): method test_migration_file_generated (line 241) | def test_migration_file_generated(self): method test_migration_file_content (line 247) | def test_migration_file_content(self): method test_migration_serialization_stability (line 273) | def test_migration_serialization_stability(self): method test_PolymorphicGuard_unwraps_correctly (line 287) | def test_PolymorphicGuard_unwraps_correctly(self): method test_all_on_delete_types_covered (line 300) | def test_all_on_delete_types_covered(self): method test_guard_equality_with_same_guard (line 347) | def test_guard_equality_with_same_guard(self): method test_guard_equality_with_different_guard (line 355) | def test_guard_equality_with_different_guard(self): method test_guard_equality_with_non_serializable_object (line 363) | def test_guard_equality_with_non_serializable_object(self): method test_guard_equality_with_serialization_exception (line 378) | def test_guard_equality_with_serialization_exception(self): class PolymorphicInheritanceSerializationTest (line 394) | class PolymorphicInheritanceSerializationTest(TestCase): method test_polymorphic_inheritance_chain (line 399) | def test_polymorphic_inheritance_chain(self): class OnDeleteBehaviorTest (line 417) | class OnDeleteBehaviorTest(GeneratedMigrationsPerClassMixin, Transaction... method test_cascade_deletes_related_objects (line 427) | def test_cascade_deletes_related_objects(self): method test_protect_prevents_deletion (line 445) | def test_protect_prevents_deletion(self): method test_set_null_sets_field_to_null (line 461) | def test_set_null_sets_field_to_null(self): method test_set_default_sets_field_to_default (line 480) | def test_set_default_sets_field_to_default(self): method test_set_callable_uses_function (line 499) | def test_set_callable_uses_function(self): method test_do_nothing_behavior (line 518) | def test_do_nothing_behavior(self): method test_restrict_prevents_deletion_when_objects_exist (line 540) | def test_restrict_prevents_deletion_when_objects_exist(self): method test_cascade_with_polymorphic_inheritance (line 556) | def test_cascade_with_polymorphic_inheritance(self): method test_one_to_one_cascade_deletes_related_object (line 579) | def test_one_to_one_cascade_deletes_related_object(self): method test_one_to_one_protect_prevents_deletion (line 597) | def test_one_to_one_protect_prevents_deletion(self): method test_one_to_one_set_null_sets_to_null (line 613) | def test_one_to_one_set_null_sets_to_null(self): FILE: src/polymorphic/tests/test_multidb.py class MultipleDatabasesTests (line 23) | class MultipleDatabasesTests(TestCase): method test_save_to_non_default_database (line 26) | def test_save_to_non_default_database(self): method test_instance_of_filter_on_non_default_database (line 44) | def test_instance_of_filter_on_non_default_database(self): method test_forward_many_to_one_descriptor_on_non_default_database (line 78) | def test_forward_many_to_one_descriptor_on_non_default_database(self): method test_reverse_many_to_one_descriptor_on_non_default_database (line 89) | def test_reverse_many_to_one_descriptor_on_non_default_database(self): method test_reverse_one_to_one_descriptor_on_non_default_database (line 100) | def test_reverse_one_to_one_descriptor_on_non_default_database(self): method test_many_to_many_descriptor_on_non_default_database (line 113) | def test_many_to_many_descriptor_on_non_default_database(self): method test_deletion_cascade_on_non_default_db (line 125) | def test_deletion_cascade_on_non_default_db(self): method test_create_from_super (line 141) | def test_create_from_super(self): method test_cross_database_save (line 280) | def test_cross_database_save(self): method test_database_router_respected (line 311) | def test_database_router_respected(self): method test_save_respects_db_for_write_router (line 336) | def test_save_respects_db_for_write_router(self): FILE: src/polymorphic/tests/test_orm.py class PolymorphicTests (line 126) | class PolymorphicTests(TransactionTestCase): method test_annotate_aggregate_order (line 131) | def test_annotate_aggregate_order(self): method test_limit_choices_to (line 184) | def test_limit_choices_to(self): method test_primary_key_custom_field_problem (line 195) | def test_primary_key_custom_field_problem(self): method create_model2abcd (line 236) | def create_model2abcd(self): method test_simple_inheritance (line 248) | def test_simple_inheritance(self): method test_defer_fields (line 259) | def test_defer_fields(self): method test_defer_related_fields (line 315) | def test_defer_related_fields(self): method test_manual_get_real_instance (line 344) | def test_manual_get_real_instance(self): method test_get_real_instance_with_stale_content_type (line 350) | def test_get_real_instance_with_stale_content_type(self): method test_get_real_concrete_instance_class_id_with_stale_content_type (line 359) | def test_get_real_concrete_instance_class_id_with_stale_content_type(s... method test_get_real_concrete_instance_class_with_stale_content_type (line 368) | def test_get_real_concrete_instance_class_with_stale_content_type(self): method test_get_real_concrete_instance_class_with_proxy_model (line 377) | def test_get_real_concrete_instance_class_with_proxy_model(self): method test_non_polymorphic (line 386) | def test_non_polymorphic(self): method test_get_real_instances (line 396) | def test_get_real_instances(self): method test_queryset_missing_derived (line 420) | def test_queryset_missing_derived(self): method test_queryset_missing_contenttype (line 443) | def test_queryset_missing_contenttype(self): method test_translate_polymorphic_q_object (line 458) | def test_translate_polymorphic_q_object(self): method test_create_instanceof_q (line 467) | def test_create_instanceof_q(self): method test_instance_of_single_lazy_query (line 493) | def test_instance_of_single_lazy_query(self): method test_base_manager (line 515) | def test_base_manager(self): method test_default_manager (line 547) | def test_default_manager(self): method test_foreignkey_field (line 581) | def test_foreignkey_field(self): method test_parentage_links_are_non_polymorphic (line 590) | def test_parentage_links_are_non_polymorphic(self): method test_onetoone_field (line 617) | def test_onetoone_field(self): method test_manytomany_field (line 632) | def test_manytomany_field(self): method test_extra_method (line 679) | def test_extra_method(self): method test_instance_of_filter (line 728) | def test_instance_of_filter(self): method test_polymorphic___filter (line 760) | def test_polymorphic___filter(self): method test_polymorphic_applabel___filter (line 768) | def test_polymorphic_applabel___filter(self): method test_query_filter_exclude_is_immutable (line 779) | def test_query_filter_exclude_is_immutable(self): method test_polymorphic___filter_field (line 796) | def test_polymorphic___filter_field(self): method test_polymorphic___filter_reverse_field (line 804) | def test_polymorphic___filter_reverse_field(self): method test_delete (line 812) | def test_delete(self): method test_combine_querysets (line 828) | def test_combine_querysets(self): method test_multiple_inheritance (line 838) | def test_multiple_inheritance(self): method test_relation_base (line 854) | def test_relation_base(self): method test_user_defined_manager (line 917) | def test_user_defined_manager(self): method test_user_defined_manager_as_secondary (line 933) | def test_user_defined_manager_as_secondary(self): method test_user_objects_manager_as_secondary (line 953) | def test_user_objects_manager_as_secondary(self): method test_user_defined_queryset_as_manager (line 962) | def test_user_defined_queryset_as_manager(self): method test_manager_inheritance (line 983) | def test_manager_inheritance(self): method test_queryset_assignment (line 987) | def test_queryset_assignment(self): method test_proxy_models (line 1010) | def test_proxy_models(self): method test_queryset_on_proxy_model_does_not_return_superclasses (line 1024) | def test_queryset_on_proxy_model_does_not_return_superclasses(self): method test_proxy_get_real_instance_class (line 1034) | def test_proxy_get_real_instance_class(self): method test_content_types_for_proxy_models (line 1053) | def test_content_types_for_proxy_models(self): method test_proxy_model_inheritance (line 1060) | def test_proxy_model_inheritance(self): method test_custom_pk (line 1100) | def test_custom_pk(self): method test_fix_getattribute (line 1111) | def test_fix_getattribute(self): method test_parent_link_and_related_name (line 1121) | def test_parent_link_and_related_name(self): method test_polymorphic__accessor_caching (line 1140) | def test_polymorphic__accessor_caching(self): method test_polymorphic__aggregate (line 1163) | def test_polymorphic__aggregate(self): method test_polymorphic__aggregate_empty_queryset (line 1181) | def test_polymorphic__aggregate_empty_queryset(self): method test_polymorphic__complex_aggregate (line 1187) | def test_polymorphic__complex_aggregate(self): method test_annotate_f_expression (line 1226) | def test_annotate_f_expression(self): method test_polymorphic__filtered_relation (line 1255) | def test_polymorphic__filtered_relation(self): method test_polymorphic__expressions (line 1300) | def test_polymorphic__expressions(self): method test_null_polymorphic_id (line 1307) | def test_null_polymorphic_id(self): method test_invalid_polymorphic_id (line 1317) | def test_invalid_polymorphic_id(self): method test_bulk_create_abstract_inheritance (line 1328) | def test_bulk_create_abstract_inheritance(self): method test_bulk_create_proxy_inheritance (line 1340) | def test_bulk_create_proxy_inheritance(self): method test_bulk_create_unsupported_multi_table_inheritance (line 1372) | def test_bulk_create_unsupported_multi_table_inheritance(self): method test_bulk_create_ignore_conflicts (line 1378) | def test_bulk_create_ignore_conflicts(self): method test_bulk_create_no_ignore_conflicts (line 1395) | def test_bulk_create_no_ignore_conflicts(self): method test_can_query_using_subclass_selector_on_abstract_model (line 1406) | def test_can_query_using_subclass_selector_on_abstract_model(self): method test_intermediate_abstract_descriptors (line 1415) | def test_intermediate_abstract_descriptors(self): method test_can_query_using_subclass_selector_on_proxy_model (line 1422) | def test_can_query_using_subclass_selector_on_proxy_model(self): method test_intermediate_proxy_descriptors (line 1431) | def test_intermediate_proxy_descriptors(self): method test_prefetch_related_behaves_normally_with_polymorphic_model (line 1441) | def test_prefetch_related_behaves_normally_with_polymorphic_model(self): method test_prefetch_related_with_missing (line 1450) | def test_prefetch_related_with_missing(self): method test_refresh_from_db_fields (line 1479) | def test_refresh_from_db_fields(self): method test_non_polymorphic_parent (line 1490) | def test_non_polymorphic_parent(self): method test_iteration (line 1494) | def test_iteration(self): method test_transmogrify_with_init (line 1661) | def test_transmogrify_with_init(self): method test_subqueries (line 1671) | def test_subqueries(self): method test_one_to_one_primary_key (line 1739) | def test_one_to_one_primary_key(self): method test_manager_override (line 1837) | def test_manager_override(self): method test_abstract_managers (line 1856) | def test_abstract_managers(self): method test_fk_polymorphism (line 1900) | def test_fk_polymorphism(self): method test_polymorphic_extension (line 1914) | def test_polymorphic_extension(self): method test_manytomany_without_through_field (line 1942) | def test_manytomany_without_through_field(self): method test_manytomany_with_through_field (line 1954) | def test_manytomany_with_through_field(self): method test_create_from_super (line 1966) | def test_create_from_super(self): method test_create_from_super_child_exists (line 2106) | def test_create_from_super_child_exists(self): method test_through_models_creates_and_reads (line 2132) | def test_through_models_creates_and_reads(self): method test_through_model_updates (line 2170) | def test_through_model_updates(self): method test_infinite_recursion_with_only (line 2193) | def test_infinite_recursion_with_only(self): method test_generic_relation_prefetch (line 2213) | def test_generic_relation_prefetch(self): method test_besteffort_iteration (line 2248) | def test_besteffort_iteration(self): method test_besteffort_get_real_instance (line 2269) | def test_besteffort_get_real_instance(self): method test_queryset_first_returns_none_on_empty_queryset (line 2280) | def test_queryset_first_returns_none_on_empty_queryset(self): method test_queryset_getitem_raises_indexerror_on_empty_queryset (line 2283) | def test_queryset_getitem_raises_indexerror_on_empty_queryset(self): method test_queryset_getitem_negative_index_raises_valueerror (line 2287) | def test_queryset_getitem_negative_index_raises_valueerror(self): method test_queryset_getitem_slice_returns_objects (line 2292) | def test_queryset_getitem_slice_returns_objects(self): method test_aggregate_with_filtered_relation (line 2299) | def test_aggregate_with_filtered_relation(self): method test_aggregate_with_nested_q_objects (line 2323) | def test_aggregate_with_nested_q_objects(self): method test_aggregate_with_subclass_field_in_expression (line 2343) | def test_aggregate_with_subclass_field_in_expression(self): method test_get_best_effort_instance_with_missing_derived (line 2362) | def test_get_best_effort_instance_with_missing_derived(self): method test_get_best_effort_instance_with_annotations (line 2379) | def test_get_best_effort_instance_with_annotations(self): method test_get_best_effort_instance_with_extra_select (line 2397) | def test_get_best_effort_instance_with_extra_select(self): method test_get_best_effort_instance_multiple_inheritance_levels (line 2415) | def test_get_best_effort_instance_multiple_inheritance_levels(self): method test_deferred_loading_with_subclass_syntax (line 2440) | def test_deferred_loading_with_subclass_syntax(self): method test_deferred_loading_with_nonexistent_field (line 2455) | def test_deferred_loading_with_nonexistent_field(self): method test_only_with_subclass_syntax (line 2468) | def test_only_with_subclass_syntax(self): method test_real_instances_with_stale_content_type (line 2483) | def test_real_instances_with_stale_content_type(self): method test_real_instances_with_proxy_model (line 2491) | def test_real_instances_with_proxy_model(self): method test_annotate_with_polymorphic_field_path (line 2502) | def test_annotate_with_polymorphic_field_path(self): method test_aggregate_with_polymorphic_field_path (line 2514) | def test_aggregate_with_polymorphic_field_path(self): method test_disparate_pk_values_in_hierarchy (line 2527) | def test_disparate_pk_values_in_hierarchy(self): method test_manager_cache_clear_persistence (line 2623) | def test_manager_cache_clear_persistence(self): FILE: src/polymorphic/tests/test_performance.py class PerformanceTests (line 10) | class PerformanceTests(TransactionTestCase): method test_baseline_number_of_queries (line 11) | def test_baseline_number_of_queries(self): FILE: src/polymorphic/tests/test_query_translate.py class QueryTranslateTests (line 13) | class QueryTranslateTests(TestCase): method test_translate_with_not_pickleable_query (line 14) | def test_translate_with_not_pickleable_query(self): method test_deep_copy_of_q_objects (line 54) | def test_deep_copy_of_q_objects(self): method test_proxy_model_query_related_name (line 81) | def test_proxy_model_query_related_name(self): FILE: src/polymorphic/tests/test_regression.py class RegressionTests (line 26) | class RegressionTests(TestCase): method test_for_query_result_incomplete_with_inheritance (line 27) | def test_for_query_result_incomplete_with_inheritance(self): method test_pr_254 (line 58) | def test_pr_254(self): method test_alias_queryset (line 96) | def test_alias_queryset(self): method test_alias_advanced (line 129) | def test_alias_advanced(self): method test_upcasting_to_sibling_class (line 166) | def test_upcasting_to_sibling_class(self): method test_mixed_inheritance_save_issue_495 (line 189) | def test_mixed_inheritance_save_issue_495(self): method test_create_or_update (line 237) | def test_create_or_update(self): method test_double_underscore_in_related_name (line 269) | def test_double_underscore_in_related_name(self): method test_issue_252_abstract_base_class (line 284) | def test_issue_252_abstract_base_class(self): class SpecialBookForm (line 330) | class SpecialBookForm(forms.ModelForm): class Meta (line 331) | class Meta: class TestFormsetExclude (line 336) | class TestFormsetExclude(TestCase): method test_formset_child_respects_exclude (line 337) | def test_formset_child_respects_exclude(self): method test_formset_initial_with_contenttype_instance (line 346) | def test_formset_initial_with_contenttype_instance(self): method test_formset_with_none_instance (line 375) | def test_formset_with_none_instance(self): method test_combined_formset_behaviors (line 412) | def test_combined_formset_behaviors(self): FILE: src/polymorphic/tests/test_serialization.py function call_dumpdata (line 40) | def call_dumpdata(*models, natural_foreign=True, natural_primary=True, a... function run_dumpdata (line 54) | def run_dumpdata(*models, natural_foreign=True, natural_primary=True, al... function dump_objects (line 68) | def dump_objects(db): function natkey_dump_objects (line 80) | def natkey_dump_objects(db): function test_dumpdata_returns_base_objects_not_downcasted (line 109) | def test_dumpdata_returns_base_objects_not_downcasted(dumpdata, dump_obj... function test_dumpdata_all_flag (line 167) | def test_dumpdata_all_flag(dumpdata, dump_objects, all): function test_dumpdata_child_model_only (line 233) | def test_dumpdata_child_model_only(dumpdata, dump_objects): function test_dumpdata_multi_table_roundtrip (line 263) | def test_dumpdata_multi_table_roundtrip(dumpdata, dump_objects, all): function test_dumpdata_related_polymorphic_roundtrip (line 462) | def test_dumpdata_related_polymorphic_roundtrip(dumpdata, dump_objects, ... function test_dumpdata_natural_keys (line 583) | def test_dumpdata_natural_keys(dumpdata, natkey_dump_objects): FILE: src/polymorphic/tests/test_signals.py class TestSignals (line 9) | class TestSignals(TestCase): method test_first_behavior_during_post_delete_signal_1 (line 10) | def test_first_behavior_during_post_delete_signal_1(self): method test_first_behavior_during_post_delete_signal_2 (line 34) | def test_first_behavior_during_post_delete_signal_2(self): method test_getitem_behavior_during_post_delete_signal (line 50) | def test_getitem_behavior_during_post_delete_signal(self): method test_normal_getitem_behavior_during_post_delete_signal (line 70) | def test_normal_getitem_behavior_during_post_delete_signal(self): method test_queryset_first_returns_remaining_object_in_post_delete_signal (line 89) | def test_queryset_first_returns_remaining_object_in_post_delete_signal... method test_queryset_getitem_returns_remaining_object_in_post_delete_signal (line 126) | def test_queryset_getitem_returns_remaining_object_in_post_delete_sign... method test_queryset_first_works_when_deleted_object_created_second (line 165) | def test_queryset_first_works_when_deleted_object_created_second(self): method test_besteffort_iteration_avoids_nplusone (line 198) | def test_besteffort_iteration_avoids_nplusone(self): FILE: src/polymorphic/tests/test_templatetags.py function parse_json_from_template (line 19) | def parse_json_from_template(result): class BreadcrumbScopeTagTest (line 24) | class BreadcrumbScopeTagTest(TestCase): method test_breadcrumb_scope_sets_app_label (line 27) | def test_breadcrumb_scope_sets_app_label(self): method test_breadcrumb_scope_sets_opts (line 38) | def test_breadcrumb_scope_sets_opts(self): method test_breadcrumb_scope_restores_context (line 49) | def test_breadcrumb_scope_restores_context(self): method test_breadcrumb_scope_with_none_base_opts (line 62) | def test_breadcrumb_scope_with_none_base_opts(self): method test_breadcrumb_scope_with_string_base_opts (line 74) | def test_breadcrumb_scope_with_string_base_opts(self): method test_breadcrumb_scope_missing_argument_raises_error (line 86) | def test_breadcrumb_scope_missing_argument_raises_error(self): method test_breadcrumb_scope_too_many_arguments_raises_error (line 93) | def test_breadcrumb_scope_too_many_arguments_raises_error(self): method test_breadcrumb_scope_with_variable_lookup (line 101) | def test_breadcrumb_scope_with_variable_lookup(self): class IncludeEmptyFormFilterTest (line 113) | class IncludeEmptyFormFilterTest(TestCase): method test_include_empty_form_with_polymorphic_formset (line 116) | def test_include_empty_form_with_polymorphic_formset(self): method test_include_empty_form_with_standard_formset (line 141) | def test_include_empty_form_with_standard_formset(self): method test_include_empty_form_with_empty_polymorphic_formset (line 159) | def test_include_empty_form_with_empty_polymorphic_formset(self): class AsScriptOptionsFilterTest (line 184) | class AsScriptOptionsFilterTest(TestCase): method test_as_script_options_returns_valid_json (line 187) | def test_as_script_options_returns_valid_json(self): method test_as_script_options_contains_prefix (line 207) | def test_as_script_options_contains_prefix(self): method test_as_script_options_contains_pk_field_name (line 227) | def test_as_script_options_contains_pk_field_name(self): method test_as_script_options_contains_add_text (line 247) | def test_as_script_options_contains_add_text(self): method test_as_script_options_contains_show_add_button (line 267) | def test_as_script_options_contains_show_add_button(self): method test_as_script_options_contains_delete_text (line 287) | def test_as_script_options_contains_delete_text(self): method test_as_script_options_polymorphic_contains_child_types (line 307) | def test_as_script_options_polymorphic_contains_child_types(self): method test_as_script_options_child_types_have_name_and_type (line 332) | def test_as_script_options_child_types_have_name_and_type(self): method test_as_script_options_standard_formset_no_child_types (line 353) | def test_as_script_options_standard_formset_no_child_types(self): method test_as_script_options_custom_verbose_name (line 367) | def test_as_script_options_custom_verbose_name(self): method test_as_script_options_custom_add_text (line 387) | def test_as_script_options_custom_add_text(self): method test_as_script_options_custom_show_add_button (line 407) | def test_as_script_options_custom_show_add_button(self): class AsFormTypeFilterTest (line 428) | class AsFormTypeFilterTest(TestCase): method test_as_form_type_returns_model_name (line 431) | def test_as_form_type_returns_model_name(self): method test_as_form_type_with_model2a_form (line 452) | def test_as_form_type_with_model2a_form(self): method test_as_form_type_with_model2b_form (line 471) | def test_as_form_type_with_model2b_form(self): class AsModelNameFilterTest (line 491) | class AsModelNameFilterTest(TestCase): method test_as_model_name_with_model_class (line 494) | def test_as_model_name_with_model_class(self): method test_as_model_name_with_model_instance (line 502) | def test_as_model_name_with_model_instance(self): method test_as_model_name_with_child_model (line 512) | def test_as_model_name_with_child_model(self): method test_as_model_name_with_child_model_instance (line 520) | def test_as_model_name_with_child_model_instance(self): method test_as_model_name_in_loop (line 530) | def test_as_model_name_in_loop(self): FILE: src/polymorphic/tests/test_utils.py class UtilsTests (line 23) | class UtilsTests(TransactionTestCase): method test_sort_by_subclass (line 24) | def test_sort_by_subclass(self): method test_reset_polymorphic_ctype (line 33) | def test_reset_polymorphic_ctype(self): method test_get_base_polymorphic_model (line 54) | def test_get_base_polymorphic_model(self): method test_get_base_polymorphic_model_skip_abstract (line 70) | def test_get_base_polymorphic_model_skip_abstract(self): method test_concrete_descendants (line 91) | def test_concrete_descendants(self): method test_route_to_ancestor (line 206) | def test_route_to_ancestor(self): class PrepareForCopyTests (line 330) | class PrepareForCopyTests(TransactionTestCase): method test_copy_polymorphic_objects (line 331) | def test_copy_polymorphic_objects(self): method test_prepare_for_copy_edge_cases (line 446) | def test_prepare_for_copy_edge_cases(self): method test_prepare_for_copy_upcast (line 550) | def test_prepare_for_copy_upcast(self): method test_prepare_for_copy_plain (line 571) | def test_prepare_for_copy_plain(self): method test_copy_with_abstract_base (line 587) | def test_copy_with_abstract_base(self): method test_copy_with_proxies (line 612) | def test_copy_with_proxies(self): method test_model_registration_and_utils_caches (line 638) | def test_model_registration_and_utils_caches(self): FILE: src/polymorphic/tests/utils.py function is_sqlite_in_memory (line 24) | def is_sqlite_in_memory(db_name: str = "default") -> bool: function is_oracle (line 34) | def is_oracle(db_name: str = "default") -> bool: function get_subprocess_test_db_env (line 40) | def get_subprocess_test_db_env(db_name: str = "default") -> dict[str, str]: class GeneratedMigrationsPerClassMixin (line 78) | class GeneratedMigrationsPerClassMixin: method setUpClass (line 92) | def setUpClass(cls): method tearDownClass (line 118) | def tearDownClass(cls): method _find_latest_migration_name (line 141) | def _find_latest_migration_name(cls, app_label: str) -> str: class _GenericUITest (line 156) | class _GenericUITest(StaticLiveServerTestCase): method admin_url (line 167) | def admin_url(self): method add_url (line 170) | def add_url(self, model): method change_url (line 174) | def change_url(self, model, id): method list_url (line 181) | def list_url(self, model): method get_object_ids (line 185) | def get_object_ids(self, model): method setUpClass (line 192) | def setUpClass(cls): method tearDownClass (line 208) | def tearDownClass(cls): method setUp (line 215) | def setUp(self): method tearDown (line 230) | def tearDown(self): FILE: src/polymorphic/utils.py class ParentLinkInfo (line 16) | class ParentLinkInfo: function reset_polymorphic_ctype (line 25) | def reset_polymorphic_ctype(*models: type[models.Model], **filters: Any)... function _compare_mro (line 56) | def _compare_mro(cls1: type, cls2: type) -> int: function sort_by_subclass (line 73) | def sort_by_subclass(*classes: type[models.Model]) -> list[type[models.M... function get_base_polymorphic_model (line 83) | def get_base_polymorphic_model( function route_to_ancestor (line 103) | def route_to_ancestor( function is_model_loaded (line 143) | def is_model_loaded(model: type[models.Model]) -> bool: function concrete_descendants (line 152) | def concrete_descendants( function prepare_for_copy (line 181) | def prepare_for_copy(obj: models.Model) -> None: function _lazy_ctype (line 248) | def _lazy_ctype(model: type[models.Model], using: str = DEFAULT_DB_ALIAS... function lazy_ctype (line 258) | def lazy_ctype(model: type[models.Model], using: str = DEFAULT_DB_ALIAS)... function _map_queryname_to_class (line 277) | def _map_queryname_to_class(base_model: type[models.Model], qry_name: st... function _clear_utility_caches (line 300) | def _clear_utility_caches() -> None: