﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18711	"NamedUrlWizardView looses with ""url_name"" keyword"	oic2day@…	nobody	"following directions at
https://docs.djangoproject.com/en/1.4/ref/contrib/formtools/form-wizard/#usage-of-namedurlwizardview

I have a wizard that works (when I don't try to branch, but that's another story). Decided to try as NamedUrlWizard. Fails when my fooWizard.as_view(forms, url_name='bar') is called
If I comment out both keywords (url_name, done_step_name) it doesn't fail although I'm not sure if it ""works"" (I don't know what the expected behavior should be when the extra UrlWizardView mechanism is used).

The code (formtools/wizard/views.py) uses a construct in the body that I'm not familiar with.  But its signature would seem to allow any keywords.


Here's the stack trace

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/hike_calc/hikeReq/

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'registration',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.flatpages',
 'hike_calc')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')


Traceback:
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/core/handlers/base.py"" in get_response
  101.                             request.path_info)
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/core/urlresolvers.py"" in resolve
  298.             for pattern in self.url_patterns:
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/core/urlresolvers.py"" in url_patterns
  328.         patterns = getattr(self.urlconf_module, ""urlpatterns"", self.urlconf_module)
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/core/urlresolvers.py"" in urlconf_module
  323.             self._urlconf_module = import_module(self.urlconf_name)
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/utils/importlib.py"" in import_module
  35.     __import__(name)
File ""/home/pothiers/sandbox/hike_calculator_site/hike_calculator/urls.py"" in <module>
  37.                                             done_step_name='finished'
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/contrib/formtools/wizard/views.py"" in as_view
  119.         return super(WizardView, cls).as_view(**initkwargs)
File ""/home/pothiers/.virtualenvs/hc/lib/python2.7/site-packages/django/views/generic/base.py"" in as_view
  42.                     cls.__name__, key))

Exception Type: TypeError at /hike_calc/hikeReq/
Exception Value: HikeRequestWizard() received an invalid keyword 'url_name'
"	Uncategorized	closed	Documentation	1.4	Normal	worksforme			Unreviewed	0	0	0	0	0	0
