Skip to content

Commit

Permalink
Fixed issue caused by having optional url kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
AltusBarry committed Jul 3, 2017
1 parent e2ecc5c commit 95dcf14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion formfactory/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_form(self):
self.assertEqual(self.form.fieldgroups.count(), 1)
self.assertIsInstance(self.form.as_form(), forms.Form)
self.assertEqual(
self.form.get_absolute_url(), "/formfactory/%s/" % self.form.slug
self.form.get_absolute_url(), "/formfactory/form/%s/" % self.form.slug
)
self.assertEqual(unicode(self.form), u"Form 1")

Expand Down
2 changes: 1 addition & 1 deletion formfactory/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name="wizard-detail"
),
url(
r"^(?P<slug>[-\w]+)(?:/(?P<template_suffix>[\w-]+))?/$",
r"^form/(?P<slug>[-\w]+)(?:/(?P<template_suffix>[\w-]+))?/$",
FactoryFormView.as_view(),
name="form-detail"
),
Expand Down

0 comments on commit 95dcf14

Please sign in to comment.