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 | a94d63a14460218fa6af5c33c8125217929264cb (patch) | |
tree | 88ddd8d03acbd004a652d0c5e61a41a2a9009b4c /ishtar_common/widgets.py | |
parent | ed0f574234f649e7383fa3382a6a81fcec7e04e1 (diff) | |
download | Ishtar-a94d63a14460218fa6af5c33c8125217929264cb.tar.bz2 Ishtar-a94d63a14460218fa6af5c33c8125217929264cb.zip |
Fix url for popup window creation with no parent
Diffstat (limited to 'ishtar_common/widgets.py')
-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"))
|