Changes between Version 2 and Version 3 of ReplacingGetAbsoluteUrl
- Timestamp:
- Aug 12, 2008, 2:54:47 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ReplacingGetAbsoluteUrl
v2 v3 41 41 By grepping the Django source code, I've identified the following places where get_absolute_url is used: 42 42 43 { noformat}43 {{{ 44 44 grep -r get_absolute_url django | grep -v ".svn" | grep -v '.pyc' 45 {noformat}45 }}} 46 46 47 47 * '''contrib/admin/options.py''': Uses hasattr(obj, 'get_absolute_url') to populate 'has_absolute_url' and 'show_url' properties which are passed through to templates and used to show links to that object on the actual site.