HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Fixed #15272 -- Altered generic views to use the guaranteed untransla…
…ted object_name, rather than the possibly translated verbose_name(_plural) for default context objects. Thanks to szczav for the report and patch. This is BACKWARDS INCOMPATIBLE for anyone relying on the default context object names for class-based Detail and List views. To migrate, either update your templates to use the new default names, or add a context_object_name argument to your generic views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information...
Showing with 44 additions and 41 deletions.
- +1 −2 django/views/generic/detail.py
- +1 −2 django/views/generic/list.py
- +13 −9 docs/ref/class-based-views.txt
- +2 −1 docs/topics/generic-views-migration.txt
- +12 −12 tests/regressiontests/generic_views/dates.py
- +1 −1 tests/regressiontests/generic_views/detail.py
- +14 −14 tests/regressiontests/generic_views/list.py