From 06fe3de959ceb28cfa80ba305944a8fcbd309c1e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 10 Feb 2011 17:11:20 +0100 Subject: Correct Operation selection by town --- ishtar/furnitures/forms.py | 2 +- ishtar/furnitures/models.py | 2 +- ishtar/furnitures/views.py | 1 - ishtar/furnitures/widgets.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index 087b52a3b..8dfce73c8 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -1170,7 +1170,7 @@ class OperationWizard(Wizard): return datas class OperationSelect(forms.Form): - town = forms.IntegerField(label=_(u"Town"), + towns = forms.IntegerField(label=_(u"Town"), widget=widgets.JQueryAutoComplete("/" + settings.URL_PATH + \ 'autocomplete-town', associated_model=models.Town), validators=[models.valid_id(models.Town)]) diff --git a/ishtar/furnitures/models.py b/ishtar/furnitures/models.py index 412245b41..fec52bfe5 100644 --- a/ishtar/furnitures/models.py +++ b/ishtar/furnitures/models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010 Étienne Loks +# Copyright (C) 2010-2011 Étienne Loks # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as diff --git a/ishtar/furnitures/views.py b/ishtar/furnitures/views.py index 432724498..8350de9f8 100644 --- a/ishtar/furnitures/views.py +++ b/ishtar/furnitures/views.py @@ -141,7 +141,6 @@ def get_item(model, func_name, default_name): request_keys = dict([(field.name, field.name + (hasattr(field, 'rel') and '__pk' or '')) for field in fields]) - #for field in model._meta.get_all_field_names()]) dct = {} for k in request_keys: q = request.GET.get(k) diff --git a/ishtar/furnitures/widgets.py b/ishtar/furnitures/widgets.py index 28853e406..fe40da912 100644 --- a/ishtar/furnitures/widgets.py +++ b/ishtar/furnitures/widgets.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010 Étienne Loks +# Copyright (C) 2010-2011 Étienne Loks # Copyright (C) 2007 skam # (http://djangosnippets.org/snippets/233/) -- cgit v1.2.3