Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Dict Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr Str Dict Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str CompareEq Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list decorator_list
N/A __future__ unicode_literals django.contrib admin django.shortcuts redirect django.http HttpResponseRedirect mezzanine.utils.urls admin_url SingletonAdmin N/A N/A admin ModelAdmin N/A N/A 
    Admin class for models that should only contain a single instance
    in the database. Redirect all views to the change view when the
    instance exists, and to the add view when it doesn't.
     handle_save N/A N/A self request response N/A N/A N/A 
        Handles redirect back to the dashboard when save is clicked
        (eg not save and continue editing), by checking for a redirect
        response, which only occurs if the form is valid.
         N/A form_valid N/A isinstance response HttpResponseRedirect N/A N/A N/A N/A N/A request POST get _save form_valid N/A N/A N/A redirect admin:index N/A response N/A add_view N/A N/A self N/A args kwargs N/A N/A 
        Redirect to the change view if the singleton instance exists.
         N/A N/A N/A singleton N/A N/A N/A N/A self model objects get N/A N/A N/A N/A N/A N/A self model DoesNotExist N/A N/A self model MultipleObjectsReturned N/A N/A N/A N/A kwargs setdefault extra_context N/A N/A N/A N/A kwargs N/A extra_context N/A singleton True N/A response N/A N/A N/A super SingletonAdmin self add_view args kwargs N/A N/A N/A self handle_save N/A args N/A 0 response N/A N/A redirect N/A admin_url N/A self model change N/A singleton id N/A changelist_view N/A N/A self N/A args kwargs N/A N/A 
        Redirect to the add view if no records exist or the change
        view if the singleton instance exists.
         N/A N/A N/A singleton N/A N/A N/A N/A self model objects get N/A N/A N/A N/A N/A self model MultipleObjectsReturned N/A N/A N/A N/A N/A super SingletonAdmin self changelist_view args kwargs N/A N/A N/A N/A self model DoesNotExist N/A N/A N/A redirect N/A admin_url N/A self model add N/A N/A redirect N/A admin_url N/A self model change N/A singleton id N/A change_view N/A N/A self N/A args kwargs N/A N/A 
        If only the singleton instance exists, pass ``True`` for
        ``singleton`` into the template which will use CSS to hide
        the "save and add another" button.
         N/A N/A N/A kwargs setdefault extra_context N/A N/A N/A N/A kwargs N/A extra_context N/A singleton N/A N/A N/A N/A N/A self model objects count 1 N/A response N/A N/A N/A super SingletonAdmin self change_view args kwargs N/A N/A N/A self handle_save N/A args N/A 0 response N/A N/A