Author: Alex Date: 2012-04-22 08:58:53 -0700 (Sun, 22 Apr 2012) New Revision: 17927
Modified: django/trunk/AUTHORS django/trunk/docs/topics/http/shortcuts.txt Log: Fixed #18159 -- added an import statement to the docs. Thanks to Jeff Hui for the patch. Modified: django/trunk/AUTHORS =================================================================== --- django/trunk/AUTHORS 2012-04-22 15:07:36 UTC (rev 17926) +++ django/trunk/AUTHORS 2012-04-22 15:58:53 UTC (rev 17927) @@ -255,6 +255,7 @@ John Huddleston <hudd...@wwu.edu> Rob Hudson <http://rob.cogit8.org/> Jason Huggins <http://www.jrandolph.com/blog/> + Jeff Hui <jeffk...@gmail.com> Gabriel Hurley <gabr...@strikeawe.com> Hyun Mi Ae Ibon <ibo...@gmail.com> Modified: django/trunk/docs/topics/http/shortcuts.txt =================================================================== --- django/trunk/docs/topics/http/shortcuts.txt 2012-04-22 15:07:36 UTC (rev 17926) +++ django/trunk/docs/topics/http/shortcuts.txt 2012-04-22 15:58:53 UTC (rev 17927) @@ -181,6 +181,8 @@ :meth:`~django.db.models.Model.get_absolute_url` method will be called to figure out the redirect URL:: + from django.shortcuts import redirect + def my_view(request): ... object = MyModel.objects.get(...) -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.