Package django :: Package contrib :: Package admin :: Package views :: Module main
[hide private]
[frames] | no frames]

Module main

source code

Classes [hide private]
  IncorrectLookupParameters
  AdminBoundField
  AdminBoundFieldLine
  AdminBoundFieldSet
  ChangeList
Functions [hide private]
 
quote(s)
Ensure that primary key values do not confuse the admin URLs by escaping any '/', '_' and ':' characters.
source code
 
unquote(s)
Undo the effects of quote().
source code
 
get_javascript_imports(opts, auto_populated_fields, field_sets) source code
 
render_change_form(model, manipulator, context, add=False, change=False, form_url='') source code
 
index(request) source code
 
add_stage(request, app_label, model_name, show_delete=False, form_url='', post_url=None, post_url_continue='../%s/', object_id_override=None) source code
 
change_stage(request, app_label, model_name, object_id) source code
 
_nest_help(obj, depth, val) source code
 
_get_deleted_objects(deleted_objects, perms_needed, user, obj, opts, current_depth)
Helper function that recursively populates deleted_objects.
source code
 
delete_stage(request, app_label, model_name, object_id) source code
 
history(request, app_label, model_name, object_id) source code
 
change_list(request, app_label, model_name) source code
Variables [hide private]
  MAX_SHOW_ALL_ALLOWED = 200
  ALL_VAR = 'all'
  ORDER_VAR = 'o'
  ORDER_TYPE_VAR = 'ot'
  PAGE_VAR = 'p'
  SEARCH_VAR = 'q'
  IS_POPUP_VAR = 'pop'
  ERROR_FLAG = 'e'
  EMPTY_CHANGELIST_VALUE = '(None)'
  use_raw_id_admin = lambda field:

Imports: oldforms, template, settings, FilterSpec, staff_member_required, never_cache, ContentType, ImproperlyConfigured, ObjectDoesNotExist, PermissionDenied, ObjectPaginator, InvalidPage, get_object_or_404, render_to_response, models, handle_legacy_orderlist, QuerySet, Http404, HttpResponse, HttpResponseRedirect, escape, capfirst, get_text_list, force_unicode, smart_str, _, mark_safe, operator, set, LogEntry, ADDITION, CHANGE, DELETION


Function Details [hide private]

quote(s)

source code 

Ensure that primary key values do not confuse the admin URLs by escaping any '/', '_' and ':' characters. Similar to urllib.quote, except that the quoting is slightly different so that it doesn't get automatically unquoted by the Web browser.

unquote(s)

source code 

Undo the effects of quote(). Based heavily on urllib.unquote().