Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str BinOpMod Str AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr Str Str Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword ListLoad Str Str keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Assign NameStore Call NameLoad keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Assign NameStore Call NameLoad keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword TupleLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list decorator_list Call NameLoad keyword TupleLoad Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list Call NameLoad keyword TupleLoad Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list Call NameLoad keyword TupleLoad Str ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad Call SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Index Num attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad Call SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Index Num attr ListLoad Str Str Str Str ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad Call SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Index Num attr ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return ListLoad TupleLoad NameLoad Dict Str ListLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str decorator_list decorator_list
N/A __future__ absolute_import unicode_literals django.conf settings django.contrib admin django.contrib.admin.sites AdminSite django.contrib.contenttypes.generic generic_inlineformset_factory GenericTabularInline django.forms.formsets DEFAULT_MAX_NUM django.forms.models ModelForm django.test TestCase django.test.utils override_settings admin MediaInline MediaPermanentInline models Episode EpisodeExtra EpisodeMaxNum Media EpisodePermanent Category GenericAdminViewTest N/A TestCase N/A N/A urls generic_inline_admin.urls N/A fixtures N/A users.xml setUp N/A N/A self N/A N/A N/A N/A self original_template_debug N/A settings TEMPLATE_DEBUG N/A N/A settings TEMPLATE_DEBUG True N/A N/A N/A N/A self client login username super password secret N/A e N/A N/A N/A Episode objects create name This Week in Django N/A N/A self episode_pk N/A e pk N/A m N/A Media content_object e url http://example.com/podcast.mp3 N/A N/A N/A m save N/A N/A self mp3_media_pk N/A m pk N/A m N/A Media content_object e url http://example.com/logo.png N/A N/A N/A m save N/A N/A self png_media_pk N/A m pk N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self client logout N/A N/A settings TEMPLATE_DEBUG N/A self original_template_debug N/A testBasicAddGet N/A N/A self N/A N/A N/A 
        A smoke test to ensure GET on the add_view works.
         N/A response N/A N/A N/A self client get /generic_inline_admin/admin/generic_inline_admin/episode/add/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A testBasicEditGet N/A N/A self N/A N/A N/A 
        A smoke test to ensure GET on the change_view works.
         N/A response N/A N/A N/A self client get N/A /generic_inline_admin/admin/generic_inline_admin/episode/%d/ N/A self episode_pk N/A N/A N/A self assertEqual N/A response status_code 200 N/A testBasicAddPost N/A N/A self N/A N/A N/A 
        A smoke test to ensure POST on add_view works.
         N/A post_data N/A name generic_inline_admin-media-content_type-object_id-TOTAL_FORMS generic_inline_admin-media-content_type-object_id-INITIAL_FORMS generic_inline_admin-media-content_type-object_id-MAX_NUM_FORMS This Week in Django 1 0 0 N/A response N/A N/A N/A self client post /generic_inline_admin/admin/generic_inline_admin/episode/add/ post_data N/A N/A N/A self assertEqual N/A response status_code 302 N/A testBasicEditPost N/A N/A self N/A N/A N/A 
        A smoke test to ensure POST on edit_view works.
         N/A post_data N/A name generic_inline_admin-media-content_type-object_id-TOTAL_FORMS generic_inline_admin-media-content_type-object_id-INITIAL_FORMS generic_inline_admin-media-content_type-object_id-MAX_NUM_FORMS generic_inline_admin-media-content_type-object_id-0-id generic_inline_admin-media-content_type-object_id-0-url generic_inline_admin-media-content_type-object_id-1-id generic_inline_admin-media-content_type-object_id-1-url generic_inline_admin-media-content_type-object_id-2-id generic_inline_admin-media-content_type-object_id-2-url This Week in Django 3 2 0 N/A %d N/A self mp3_media_pk http://example.com/podcast.mp3 N/A %d N/A self png_media_pk http://example.com/logo.png N/A url N/A /generic_inline_admin/admin/generic_inline_admin/episode/%d/ N/A self episode_pk N/A response N/A N/A N/A self client post url post_data N/A N/A N/A self assertEqual N/A response status_code 302 N/A testGenericInlineFormset N/A N/A self N/A N/A N/A EpisodeMediaFormSet N/A generic_inlineformset_factory Media can_delete False exclude N/A description keywords extra 3 N/A e N/A N/A N/A Episode objects get name This Week in Django N/A formset N/A EpisodeMediaFormSet instance e N/A N/A N/A self assertEqual N/A len N/A formset forms 5 N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 0 as_p N/A <p><label for="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-0-url" type="url" name="generic_inline_admin-media-content_type-object_id-0-url" value="http://example.com/podcast.mp3" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-0-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-0-id" /></p> N/A self mp3_media_pk N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 1 as_p N/A <p><label for="id_generic_inline_admin-media-content_type-object_id-1-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-1-url" type="url" name="generic_inline_admin-media-content_type-object_id-1-url" value="http://example.com/logo.png" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-1-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-1-id" /></p> N/A self png_media_pk N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 2 as_p <p><label for="id_generic_inline_admin-media-content_type-object_id-2-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-2-url" type="url" name="generic_inline_admin-media-content_type-object_id-2-url" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-2-id" id="id_generic_inline_admin-media-content_type-object_id-2-id" /></p> N/A formset N/A EpisodeMediaFormSet instance e queryset N/A N/A N/A Media objects order_by url N/A N/A N/A self assertEqual N/A len N/A formset forms 5 N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 0 as_p N/A <p><label for="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-0-url" type="url" name="generic_inline_admin-media-content_type-object_id-0-url" value="http://example.com/logo.png" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-0-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-0-id" /></p> N/A self png_media_pk N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 1 as_p N/A <p><label for="id_generic_inline_admin-media-content_type-object_id-1-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-1-url" type="url" name="generic_inline_admin-media-content_type-object_id-1-url" value="http://example.com/podcast.mp3" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-1-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-1-id" /></p> N/A self mp3_media_pk N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 2 as_p <p><label for="id_generic_inline_admin-media-content_type-object_id-2-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-2-url" type="url" name="generic_inline_admin-media-content_type-object_id-2-url" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-2-id" id="id_generic_inline_admin-media-content_type-object_id-2-id" /></p> N/A formset N/A EpisodeMediaFormSet instance e queryset N/A N/A N/A Media objects filter url__endswith .png N/A N/A N/A self assertEqual N/A len N/A formset forms 4 N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 0 as_p N/A <p><label for="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-0-url" type="url" name="generic_inline_admin-media-content_type-object_id-0-url" value="http://example.com/logo.png" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-0-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-0-id" /></p> N/A self png_media_pk N/A N/A N/A self assertHTMLEqual N/A N/A N/A N/A formset forms N/A 1 as_p <p><label for="id_generic_inline_admin-media-content_type-object_id-1-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-1-url" type="url" name="generic_inline_admin-media-content_type-object_id-1-url" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-1-id" id="id_generic_inline_admin-media-content_type-object_id-1-id" /></p> N/A testGenericInlineFormsetFactory N/A N/A self N/A N/A N/A inline_formset N/A generic_inlineformset_factory Media exclude N/A url N/A e N/A N/A N/A Episode objects get name This Week in Django N/A formset N/A inline_formset instance e N/A N/A N/A self assertTrue N/A N/A N/A formset get_queryset ordered N/A N/A N/A override_settings PASSWORD_HASHERS N/A django.contrib.auth.hashers.SHA1PasswordHasher GenericInlineAdminParametersTest N/A TestCase N/A N/A urls generic_inline_admin.urls N/A fixtures N/A users.xml setUp N/A N/A self N/A N/A N/A N/A N/A N/A self client login username super password secret N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self client logout N/A _create_object N/A N/A self model N/A N/A N/A 
        Create a model with an attached Media object via GFK. We can't
        load content via a fixture (since the GenericForeignKey relies on
        content type IDs, which will vary depending on what other tests
        have been run), thus we do it here.
         N/A e N/A N/A N/A model objects create name This Week in Django N/A N/A N/A N/A Media objects create content_object e url http://example.com/podcast.mp3 N/A e N/A testNoParam N/A N/A self N/A N/A N/A 
        With one initial form, extra (default) at 3, there should be 4 forms.
         N/A e N/A N/A self _create_object Episode N/A response N/A N/A N/A self client get N/A /generic_inline_admin/admin/generic_inline_admin/episode/%s/ N/A e pk N/A formset N/A N/A N/A N/A response context N/A inline_admin_formsets N/A 0 formset N/A N/A N/A self assertEqual N/A N/A formset total_form_count 4 N/A N/A N/A self assertEqual N/A N/A formset initial_form_count 1 N/A testExtraParam N/A N/A self N/A N/A N/A 
        With extra=0, there should be one form.
         N/A e N/A N/A self _create_object EpisodeExtra N/A response N/A N/A N/A self client get N/A /generic_inline_admin/admin/generic_inline_admin/episodeextra/%s/ N/A e pk N/A formset N/A N/A N/A N/A response context N/A inline_admin_formsets N/A 0 formset N/A N/A N/A self assertEqual N/A N/A formset total_form_count 1 N/A N/A N/A self assertEqual N/A N/A formset initial_form_count 1 N/A testMaxNumParam N/A N/A self N/A N/A N/A 
        With extra=5 and max_num=2, there should be only 2 forms.
         N/A e N/A N/A self _create_object EpisodeMaxNum N/A inline_form_data <input type="hidden" name="generic_inline_admin-media-content_type-object_id-TOTAL_FORMS" value="2" id="id_generic_inline_admin-media-content_type-object_id-TOTAL_FORMS" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-INITIAL_FORMS" value="1" id="id_generic_inline_admin-media-content_type-object_id-INITIAL_FORMS" /> N/A response N/A N/A N/A self client get N/A /generic_inline_admin/admin/generic_inline_admin/episodemaxnum/%s/ N/A e pk N/A formset N/A N/A N/A N/A response context N/A inline_admin_formsets N/A 0 formset N/A N/A N/A self assertEqual N/A N/A formset total_form_count 2 N/A N/A N/A self assertEqual N/A N/A formset initial_form_count 1 N/A N/A N/A override_settings PASSWORD_HASHERS N/A django.contrib.auth.hashers.SHA1PasswordHasher GenericInlineAdminWithUniqueTogetherTest N/A TestCase N/A N/A urls generic_inline_admin.urls N/A fixtures N/A users.xml setUp N/A N/A self N/A N/A N/A N/A N/A N/A self client login username super password secret N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self client logout N/A testAdd N/A N/A self N/A N/A N/A category_id N/A N/A N/A N/A Category objects create name male pk N/A post_data N/A name generic_inline_admin-phonenumber-content_type-object_id-TOTAL_FORMS generic_inline_admin-phonenumber-content_type-object_id-INITIAL_FORMS generic_inline_admin-phonenumber-content_type-object_id-MAX_NUM_FORMS generic_inline_admin-phonenumber-content_type-object_id-0-id generic_inline_admin-phonenumber-content_type-object_id-0-phone_number generic_inline_admin-phonenumber-content_type-object_id-0-category John Doe 1 0 0 555-555-5555 N/A %s category_id N/A response N/A N/A N/A self client get /generic_inline_admin/admin/generic_inline_admin/contact/add/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A response N/A N/A N/A self client post /generic_inline_admin/admin/generic_inline_admin/contact/add/ post_data N/A N/A N/A self assertEqual N/A response status_code 302 N/A N/A N/A override_settings PASSWORD_HASHERS N/A django.contrib.auth.hashers.SHA1PasswordHasher NoInlineDeletionTest N/A TestCase N/A N/A urls generic_inline_admin.urls test_no_deletion N/A N/A self N/A N/A N/A fake_site N/A object N/A inline N/A MediaPermanentInline EpisodePermanent fake_site N/A fake_request N/A object N/A formset N/A N/A inline get_formset fake_request N/A N/A N/A self assertFalse N/A formset can_delete N/A N/A MockRequest N/A object N/A N/A N/A MockSuperUser N/A object N/A has_perm N/A N/A self perm N/A N/A N/A True N/A N/A N/A request N/A MockRequest N/A N/A request user N/A MockSuperUser GenericInlineModelAdminTest N/A TestCase N/A N/A urls generic_inline_admin.urls setUp N/A N/A self N/A N/A N/A N/A self site N/A AdminSite N/A test_get_formset_kwargs N/A N/A self N/A N/A N/A media_inline N/A MediaInline Media N/A AdminSite N/A formset N/A N/A media_inline get_formset request N/A N/A N/A self assertEqual N/A formset max_num DEFAULT_MAX_NUM N/A N/A N/A self assertEqual N/A formset can_order False N/A formset N/A N/A media_inline get_formset request max_num 100 can_order True N/A N/A N/A self assertEqual N/A formset max_num 100 N/A N/A N/A self assertEqual N/A formset can_order True N/A test_custom_form_meta_exclude_with_readonly N/A N/A self N/A N/A N/A 
        Ensure that the custom ModelForm's `Meta.exclude` is respected when
        used in conjunction with `GenericInlineModelAdmin.readonly_fields`
        and when no `ModelAdmin.exclude` is defined.
         MediaForm N/A ModelForm N/A Meta N/A N/A N/A model Media N/A exclude N/A url N/A N/A MediaInline N/A GenericTabularInline N/A N/A readonly_fields N/A description N/A form MediaForm N/A model Media N/A EpisodeAdmin N/A N/A admin ModelAdmin N/A N/A inlines N/A MediaInline N/A N/A ma N/A EpisodeAdmin Episode N/A self site N/A N/A N/A self assertEqual N/A list N/A N/A N/A N/A N/A N/A list N/A N/A ma get_formsets request N/A 0 forms N/A 0 fields N/A keywords id DELETE N/A test_custom_form_meta_exclude N/A N/A self N/A N/A N/A 
        Ensure that the custom ModelForm's `Meta.exclude` is respected by
        `GenericInlineModelAdmin.get_formset`, and overridden if
        `ModelAdmin.exclude` or `GenericInlineModelAdmin.exclude` are defined.
        Refs #15907.
         MediaForm N/A ModelForm N/A Meta N/A N/A N/A model Media N/A exclude N/A url N/A N/A MediaInline N/A GenericTabularInline N/A N/A exclude N/A description N/A form MediaForm N/A model Media N/A EpisodeAdmin N/A N/A admin ModelAdmin N/A N/A inlines N/A MediaInline N/A N/A ma N/A EpisodeAdmin Episode N/A self site N/A N/A N/A self assertEqual N/A list N/A N/A N/A N/A N/A N/A list N/A N/A ma get_formsets request N/A 0 forms N/A 0 fields N/A url keywords id DELETE MediaInline N/A GenericTabularInline N/A N/A form MediaForm N/A model Media N/A EpisodeAdmin N/A N/A admin ModelAdmin N/A N/A inlines N/A MediaInline N/A N/A ma N/A EpisodeAdmin Episode N/A self site N/A N/A N/A self assertEqual N/A list N/A N/A N/A N/A N/A N/A list N/A N/A ma get_formsets request N/A 0 forms N/A 0 fields N/A description keywords id DELETE N/A test_get_fieldsets N/A N/A self N/A N/A MediaForm N/A ModelForm N/A Meta N/A N/A N/A model Media N/A fields __all__ N/A N/A MediaInline N/A GenericTabularInline N/A N/A form MediaForm N/A model Media N/A can_delete False get_fieldsets N/A N/A self request obj N/A None N/A N/A N/A N/A None N/A fields N/A url description N/A N/A N/A ma N/A MediaInline Media N/A self site N/A form N/A N/A N/A ma get_formset None form N/A N/A N/A self assertEqual N/A N/A form _meta fields N/A url description N/A N/A