Hello Javier, On Thu, Dec 10, 2009 at 09:04:10AM -0500, Javier Guerra wrote: > urlpatterns = patterns('', > ... > (r'^apps/$', list_detail.object_list, > {'queryset': App.objects.all()}, > 'app-list')), > ) > > urlpatterns += patterns('', > (r'^app/new/$': create_update.create_object, > {'model': App, 'post_save_redirect': reverse('app-list')}, > 'app-new'), > ... > )
Thanks for the idea. I've tried it and got the following error: File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in get_response 77. request.path_info) File "/var/lib/python-support/python2.5/django/core/urlresolvers.py" in resolve 179. for pattern in self.urlconf_module.urlpatterns: File "/var/lib/python-support/python2.5/django/core/urlresolvers.py" in _get_urlconf_module 198. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) File "/home/ibr/w/work/mcs/j/rc/src/rc/urls.py" in <module> 23. 'post_save_redirect': reverse('app-list') Exception Type: TypeError at /admin/his/person/add/ With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.