diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-07-17 14:29:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-07-17 14:29:39 +0200 |
commit | 2fa1a102e1fa674618b98abdad715dab4b5db779 (patch) | |
tree | 88ddd8d03acbd004a652d0c5e61a41a2a9009b4c | |
parent | 1dd4510288875a73c1669a671d10f690eccad92d (diff) | |
download | Ishtar-2fa1a102e1fa674618b98abdad715dab4b5db779.tar.bz2 Ishtar-2fa1a102e1fa674618b98abdad715dab4b5db779.zip |
Fix url for popup window creation with no parent
-rw-r--r-- | ishtar_common/widgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index d19b73b94..157151413 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -214,7 +214,7 @@ class JQueryJqGrid(forms.RadioSelect): name, unicode(_("Search")))
if self.new:
model_name = self.associated_model._meta.object_name.lower()
- url_new = reverse('new-' + model_name)
+ url_new = reverse('new-' + model_name, args=['0'])
rendered += u'<p><a href="#" onclick="open_window(\'%s\');">'\
u'%s</a></p>' % (url_new, unicode(self.new_message))
rendered += "\n<h4>%s</h4>\n" % unicode(_("Search and select an item"))
|