Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad Str decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad keyword Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword Str AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad keyword NameLoad attr Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str ListLoad Call AttributeLoad NameLoad attr Str decorator_list decorator_list Call NameLoad keyword Dict Str ListLoad Str Call NameLoad keyword Num
N/A __future__ unicode_literals django.conf settings django.contrib.flatpages.forms FlatpageForm django.contrib.flatpages.models FlatPage django.contrib.sites.models Site django.test TestCase modify_settings override_settings django.utils translation FlatpageAdminFormTests N/A TestCase N/A setUpTestData N/A N/A cls N/A N/A N/A N/A cls site1 N/A Site pk 1 domain example.com name example.com N/A N/A N/A N/A cls site1 save N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A N/A Site _meta _expire_cache N/A N/A self form_data N/A title content sites A test page This is a test N/A N/A settings SITE_ID N/A test_flatpage_admin_form_url_validation N/A N/A self N/A N/A N/A The flatpage admin form correctly validates urls N/A N/A N/A self assertTrue N/A N/A N/A FlatpageForm data N/A dict url /new_flatpage/ N/A self form_data is_valid N/A N/A N/A self assertTrue N/A N/A N/A FlatpageForm data N/A dict url /some.special~chars/ N/A self form_data is_valid N/A N/A N/A self assertTrue N/A N/A N/A FlatpageForm data N/A dict url /some.very_special~chars-here/ N/A self form_data is_valid N/A N/A N/A self assertFalse N/A N/A N/A FlatpageForm data N/A dict url /a space/ N/A self form_data is_valid N/A N/A N/A self assertFalse N/A N/A N/A FlatpageForm data N/A dict url /a % char/ N/A self form_data is_valid N/A N/A N/A self assertFalse N/A N/A N/A FlatpageForm data N/A dict url /a ! char/ N/A self form_data is_valid N/A N/A N/A self assertFalse N/A N/A N/A FlatpageForm data N/A dict url /a & char/ N/A self form_data is_valid N/A N/A N/A self assertFalse N/A N/A N/A FlatpageForm data N/A dict url /a ? char/ N/A self form_data is_valid N/A test_flatpage_requires_leading_slash N/A N/A self N/A N/A N/A form N/A FlatpageForm data N/A dict url no_leading_slash/ N/A self form_data N/A N/A N/A translation override en N/A N/A N/A N/A self assertFalse N/A N/A form is_valid N/A N/A N/A self assertEqual N/A N/A form errors N/A url N/A URL is missing a leading slash. N/A test_flatpage_requires_trailing_slash_with_append_slash N/A N/A self N/A N/A N/A form N/A FlatpageForm data N/A dict url /no_trailing_slash N/A self form_data N/A N/A N/A translation override en N/A N/A N/A N/A self assertFalse N/A N/A form is_valid N/A N/A N/A self assertEqual N/A N/A form errors N/A url N/A URL is missing a trailing slash. N/A N/A override_settings APPEND_SLASH True MIDDLEWARE_CLASSES N/A django.middleware.common.CommonMiddleware test_flatpage_doesnt_requires_trailing_slash_without_append_slash N/A N/A self N/A N/A N/A form N/A FlatpageForm data N/A dict url /no_trailing_slash N/A self form_data N/A N/A N/A self assertTrue N/A N/A form is_valid N/A N/A override_settings APPEND_SLASH False MIDDLEWARE_CLASSES N/A django.middleware.common.CommonMiddleware test_flatpage_admin_form_url_uniqueness_validation N/A N/A self N/A N/A N/A The flatpage admin form correctly enforces url uniqueness among flatpages of the same site N/A data N/A dict url /myflatpage1/ N/A self form_data N/A N/A N/A N/A FlatpageForm data data save N/A f N/A FlatpageForm data data N/A N/A N/A translation override en N/A N/A N/A N/A self assertFalse N/A N/A f is_valid N/A N/A N/A self assertEqual N/A f errors N/A __all__ N/A Flatpage with url /myflatpage1/ already exists for site example.com N/A test_flatpage_admin_form_edit N/A N/A self N/A N/A N/A 
        Existing flatpages can be edited in the admin form without triggering
        the url-uniqueness validation.
         N/A existing N/A N/A N/A FlatPage objects create url /myflatpage1/ title Some page content The content N/A N/A N/A N/A existing sites add N/A settings SITE_ID N/A data N/A dict url /myflatpage1/ N/A self form_data N/A f N/A FlatpageForm data data instance existing N/A N/A N/A self assertTrue N/A N/A f is_valid N/A f errors N/A updated N/A N/A f save N/A N/A N/A self assertEqual N/A updated title A test page N/A test_flatpage_nosites N/A N/A self N/A N/A N/A data N/A dict url /myflatpage1/ N/A self form_data N/A N/A N/A data update N/A sites N/A f N/A FlatpageForm data data N/A N/A N/A self assertFalse N/A N/A f is_valid N/A N/A N/A self assertEqual N/A f errors N/A sites N/A N/A N/A translation ugettext This field is required. N/A N/A N/A modify_settings INSTALLED_APPS N/A append N/A django.contrib.flatpages N/A override_settings SITE_ID 1