From 789d87f9de7c0e612328ff525fb843c6edd80eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Oct 2008 13:38:29 +0200 Subject: [PATCH] Fix guideline Remove duplicate id in _order --- address.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/address.py b/address.py index 117f7b9d09..ebba1ac2f8 100644 --- a/address.py +++ b/address.py @@ -32,13 +32,12 @@ class Address(OSV): super(Address, self).__init__() self._order.insert(0, ('party', 'ASC')) self._order.insert(1, ('sequence', 'ASC')) - self._order.insert(2, ('id', 'ASC')) self._error_messages.update({ 'write_party': 'You can not modify the party of an address!', }) def default_active(self, cursor, user, context=None): - return 1 + return True def get_full_address(self, cursor, user, ids, name, arg, context=None): if not ids: