Module ImportFrom alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore TupleLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr 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 NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad TupleLoad Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr CompareGt NameLoad Num Expr Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list
N/A django.test TestCase Client django.conf settings django_settings django.test.utils ContextList django.test.signals template_rendered django template django.db.models.signals pre_save django.contrib admin django.contrib.auth.models User adminfiles settings parse adminfiles.utils render_uploads adminfiles.models FileUpload FileUploadReference adminfiles.listeners _register_upload_listener _disconnect_upload_listener adminfiles.admin FilePickerAdmin models Post PostAdmin N/A FilePickerAdmin N/A N/A adminfiles_fields N/A content N/A FileUploadTestCase N/A TestCase N/A N/A 
    Test case with a populate() method to save a couple FileUpload instances.

     populate N/A N/A self N/A N/A N/A N/A self animage N/A N/A N/A FileUpload objects create upload adminfiles/tiny.png title An image slug an-image N/A N/A self somefile N/A N/A N/A FileUpload objects create upload adminfiles/somefile.txt title Some file slug some-file N/A N/A FilePickerTests N/A FileUploadTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self populate N/A N/A self client N/A Client N/A N/A N/A N/A admin site register Post PostAdmin N/A N/A self admin N/A N/A N/A User objects create_user admin admin@example.com testpw N/A N/A N/A self admin is_staff True N/A N/A N/A self admin is_superuser True N/A N/A N/A self admin is_active True N/A N/A N/A N/A self admin save N/A N/A N/A self assertTrue N/A N/A N/A self client login username admin password testpw N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A admin site unregister Post N/A test_picker_class_applied N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /admin/tests/post/add/ N/A N/A N/A self assertContains response class="vLargeTextField adminfilespicker" N/A test_picker_loads N/A N/A self N/A N/A N/A 
        Very basic smoke test for file picker.

         N/A response N/A N/A N/A self client get /adminfiles/all/?field=test N/A N/A N/A self assertContains response href="/media/adminfiles/tiny.png" N/A N/A N/A self assertContains response href="/media/adminfiles/somefile.txt N/A test_browser_links N/A N/A self N/A N/A N/A 
        Test correct rendering of browser links.

         N/A response N/A N/A N/A self client get /adminfiles/all/?field=test N/A N/A N/A self assertContains response href="/adminfiles/images/?field=test N/A test_images_picker_loads N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /adminfiles/images/?field=test N/A N/A N/A self assertContains response href="/media/adminfiles/tiny.png" N/A N/A N/A self assertNotContains response href="/media/adminfiles/somefile.txt N/A test_files_picker_loads N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /adminfiles/files/?field=test N/A N/A N/A self assertNotContains response href="/media/adminfiles/tiny.png" N/A N/A N/A self assertContains response href="/media/adminfiles/somefile.txt N/A test_custom_links N/A N/A self N/A N/A N/A _old_links N/A N/A N/A settings ADMINFILES_INSERT_LINKS copy N/A N/A N/A settings ADMINFILES_INSERT_LINKS N/A text/plain N/A N/A Crazy insert N/A yo thing N/A response N/A N/A N/A self client get /adminfiles/all/?field=test N/A N/A N/A self assertContains response rel="some-file:yo=thing" N/A N/A settings ADMINFILES_INSERT_LINKS _old_links N/A test_thumb_order N/A N/A self N/A N/A N/A _old_order N/A settings ADMINFILES_THUMB_ORDER N/A N/A settings ADMINFILES_THUMB_ORDER N/A title N/A response N/A N/A N/A self client get /adminfiles/all/?field=test N/A image_index N/A N/A N/A response content find tiny.png N/A file_index N/A N/A N/A response content find somefile.txt N/A N/A N/A self assertTrue N/A image_index 0 N/A N/A N/A self assertTrue N/A image_index file_index N/A N/A settings ADMINFILES_THUMB_ORDER _old_order N/A N/A SignalTests N/A FileUploadTestCase N/A N/A 
    Test tracking of uploaded file references, and auto-resave of
    content models when referenced uploaded file changes.

     setUp N/A N/A self N/A N/A N/A N/A self _old_use_signals N/A settings ADMINFILES_USE_SIGNALS N/A N/A settings ADMINFILES_USE_SIGNALS True N/A N/A N/A self _old_use_signals N/A N/A N/A _register_upload_listener N/A N/A PostAdmin Post N/A admin site N/A N/A N/A self populate N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self _old_use_signals N/A N/A N/A _disconnect_upload_listener N/A N/A settings ADMINFILES_USE_SIGNALS N/A self _old_use_signals N/A test_track_references N/A N/A self N/A N/A N/A N/A N/A N/A Post objects create title Some title content This has a reference to<<<some-file>>> N/A N/A N/A self assertEquals N/A N/A N/A FileUploadReference objects count 1 N/A test_track_multiple_references N/A N/A self N/A N/A N/A N/A N/A N/A Post objects create title Some title content This has a reference to<<<some-file>>> and <<<an-image>>> N/A N/A N/A self assertEquals N/A N/A N/A FileUploadReference objects count 2 N/A test_track_no_dupe_references N/A N/A self N/A N/A N/A post N/A N/A N/A Post objects create title Some title content This has a reference to<<<an-image>>> and <<<an-image>>> N/A N/A N/A post save N/A N/A N/A self assertEquals N/A N/A N/A FileUploadReference objects count 1 N/A test_update_reference N/A N/A self N/A N/A N/A post N/A N/A N/A Post objects create title Some title content This has a reference to<<<some-file>>> _render_on_save N/A N/A sender instance N/A kwargs N/A N/A N/A instance content N/A render_uploads N/A instance content N/A N/A N/A N/A pre_save connect _render_on_save sender Post N/A N/A N/A self somefile title A New Title N/A N/A N/A N/A self somefile save N/A reloaded_post N/A N/A N/A Post objects get title Some title N/A N/A N/A self assertTrue N/A A New Title N/A reloaded_post content N/A N/A TemplateTestCase N/A TestCase N/A N/A 
    A TestCase that stores information about rendered templates, much
    like the Django test client.

     store_rendered_template N/A N/A self signal sender template context N/A kwargs N/A N/A N/A N/A N/A self templates append template N/A N/A N/A N/A self contexts append context N/A setUp N/A N/A self N/A N/A N/A N/A self templates N/A N/A N/A self contexts N/A ContextList N/A N/A N/A template_rendered connect N/A self store_rendered_template N/A tearDown N/A N/A self N/A N/A N/A N/A N/A template_rendered disconnect N/A self store_rendered_template N/A N/A RenderTests N/A TemplateTestCase FileUploadTestCase N/A N/A 
    Test rendering of uploaded file references.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super RenderTests self setUp N/A N/A N/A self populate N/A test_render_template_used N/A N/A self N/A N/A N/A N/A render_uploads <<<some-file>>> N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 0 name adminfiles/render/default.html N/A test_render_mimetype_template_used N/A N/A self N/A N/A N/A N/A render_uploads <<<an-image>>> N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 0 name adminfiles/render/image/default.html N/A test_render_subtype_template_used N/A N/A self N/A N/A N/A N/A render_uploads <<<an-image>>> alt N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 0 name alt/image/png.html N/A test_render_whitespace N/A N/A self N/A N/A N/A N/A render_uploads <<< some-file 
>>> N/A N/A N/A self assertEquals N/A len N/A self templates 1 N/A test_render_amidst_content N/A N/A self N/A N/A N/A N/A render_uploads Some test here<<< some-file 
>>>and more here N/A N/A N/A self assertEquals N/A len N/A self templates 1 N/A test_render_upload_in_context N/A N/A self N/A N/A N/A N/A render_uploads <<<some-file>>> N/A N/A N/A self assertEquals N/A N/A N/A N/A self contexts N/A upload upload name adminfiles/somefile.txt N/A test_render_options_in_context N/A N/A self N/A N/A N/A N/A render_uploads <<<some-file:class=left:key=val>>> N/A N/A N/A self assertEquals N/A N/A self contexts N/A options N/A class key left val N/A test_render_alternate_markers N/A N/A self N/A N/A N/A old_start N/A settings ADMINFILES_REF_START N/A old_end N/A settings ADMINFILES_REF_END N/A N/A settings ADMINFILES_REF_START [[[ N/A N/A settings ADMINFILES_REF_END ]]] N/A N/A parse UPLOAD_RE N/A N/A parse _get_upload_re N/A N/A render_uploads [[[some-file]]] N/A N/A N/A self assertEquals N/A len N/A self templates 1 N/A N/A settings ADMINFILES_REF_START old_start N/A N/A settings ADMINFILES_REF_END old_end N/A N/A parse UPLOAD_RE N/A N/A parse _get_upload_re N/A test_render_invalid N/A N/A self N/A N/A N/A old_nf N/A settings ADMINFILES_STRING_IF_NOT_FOUND N/A N/A settings ADMINFILES_STRING_IF_NOT_FOUND not found N/A html N/A render_uploads <<<invalid-slug>>> N/A N/A N/A self assertEquals html not found N/A N/A settings ADMINFILES_STRING_IF_NOT_FOUND old_nf N/A test_default_template_renders_image N/A N/A self N/A N/A N/A html N/A render_uploads <<<an-image>>> N/A N/A N/A self assertTrue N/A <img src="/media/adminfiles/tiny.png" html N/A test_default_template_renders_image_class N/A N/A self N/A N/A N/A html N/A render_uploads <<<an-image:class=some classes>>> N/A N/A N/A self assertTrue N/A class="some classes" html N/A test_default_template_renders_image_alt N/A N/A self N/A N/A N/A html N/A render_uploads <<<an-image:alt=the alt text>>> N/A N/A N/A self assertTrue N/A alt="the alt text" html N/A test_default_template_renders_image_title_as_alt N/A N/A self N/A N/A N/A html N/A render_uploads <<<an-image>>> N/A N/A N/A self assertTrue N/A alt="An image" html N/A test_default_template_renders_link N/A N/A self N/A N/A N/A html N/A render_uploads <<<some-file>>> N/A N/A N/A self assertTrue N/A <a href="/media/adminfiles/somefile.txt" html N/A test_default_template_renders_link_class N/A N/A self N/A N/A N/A html N/A render_uploads <<<some-file:class=other classes>>> N/A N/A N/A self assertTrue N/A class="other classes" html N/A test_default_template_renders_link_title N/A N/A self N/A N/A N/A html N/A render_uploads <<<some-file>>> N/A N/A N/A self assertTrue N/A Some file html N/A test_default_template_renders_link_title N/A N/A self N/A N/A N/A html N/A render_uploads <<<some-file:title=Other name>>> N/A N/A N/A self assertTrue N/A Other name html N/A test_template_override N/A N/A self N/A N/A N/A html N/A render_uploads <<<an-image:as=default>>> N/A N/A N/A self assertTrue N/A <a href="/media/adminfiles/tiny.png" html N/A test_template_override_fallback N/A N/A self N/A N/A N/A html N/A render_uploads <<<some-file:as=image/jpeg>>> N/A N/A N/A self assertTrue N/A <img src="/media/adminfiles/somefile.txt" html N/A test_template_override_with_nonexisting N/A N/A self N/A N/A N/A html N/A render_uploads <<<an-image:as=some/wonky>>> N/A N/A N/A self assertTrue N/A <a href="/media/adminfiles/tiny.png" html N/A test_render_uploads_template_filter N/A N/A self N/A N/A N/A tpl N/A N/A template Template {% load adminfiles_tags %}{{ post.content|render_uploads|safe }} N/A html N/A N/A tpl render N/A N/A template Context N/A post N/A Post title a post content <<<some-file>>> N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 1 name adminfiles/render/default.html N/A N/A N/A self assertTrue N/A <a href html N/A test_render_uploads_template_filter_alt_template N/A N/A self N/A N/A N/A tpl N/A N/A template Template {% load adminfiles_tags %}{{ post.content|render_uploads:"alt" }} N/A html N/A N/A tpl render N/A N/A template Context N/A post N/A Post title a post content <<<some-file>>> N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 1 name alt/default.html N/A test_render_upload_template_filter N/A N/A self N/A N/A N/A tpl N/A N/A template Template {% load adminfiles_tags %}{{ img|render_upload }} N/A html N/A N/A tpl render N/A N/A template Context N/A img N/A self animage N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 1 name adminfiles/render/image/default.html N/A N/A N/A self assertTrue N/A <img src html N/A test_render_upload_template_filter_options N/A N/A self N/A N/A N/A tpl N/A N/A template Template {% load adminfiles_tags %}{{ img|render_upload:"alt=blah" }} N/A html N/A N/A tpl render N/A N/A template Context N/A img N/A self animage N/A N/A N/A self assertTrue N/A alt="blah" html N/A test_render_upload_template_filter_alt_template N/A N/A self N/A N/A N/A tpl N/A N/A template Template {% load adminfiles_tags %}{{ f|render_upload:"template_path=alt" }} N/A html N/A N/A tpl render N/A N/A template Context N/A f N/A self somefile N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 1 name alt/default.html N/A test_render_upload_template_filter_alt_template_options N/A N/A self N/A N/A N/A tpl N/A N/A template Template {% load adminfiles_tags %}{{ f|render_upload:"template_path=alt:class=yo" }} N/A html N/A N/A tpl render N/A N/A template Context N/A f N/A self somefile N/A N/A N/A self assertEquals N/A N/A N/A self templates N/A 1 name alt/default.html N/A N/A N/A self assertTrue N/A class="yo" html N/A N/A