Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #233 from rafikdraoui/modeladmin-doc

Updated example of customized ModelAdmin in documentation for 1.4
  • Loading branch information...
commit a04f68b15d8466d0d34f6df1009668cf60dad206 2 parents 19642a7 + 04e8ef5
@timgraham timgraham authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/admin/index.txt
View
4 docs/ref/contrib/admin/index.txt
@@ -1266,11 +1266,11 @@ provided some extra mapping data that would not otherwise be available::
# ...
pass
- def change_view(self, request, object_id, extra_context=None):
+ def change_view(self, request, object_id, form_url='', extra_context=None):
extra_context = extra_context or {}
extra_context['osm_data'] = self.get_osm_info()
return super(MyModelAdmin, self).change_view(request, object_id,
- extra_context=extra_context)
+ form_url, extra_context=extra_context)
.. versionadded:: 1.4
Please sign in to comment.
Something went wrong with that request. Please try again.