From 8ad364e41dfc6a9d873f10e8cd529b4628048a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Fri, 3 Feb 2012 19:02:29 +0100 Subject: [PATCH] Fixed empty customer's number. --- lib/invoice/db/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/invoice/db/base.py b/lib/invoice/db/base.py index 38c19d4..0e22a52 100644 --- a/lib/invoice/db/base.py +++ b/lib/invoice/db/base.py @@ -199,7 +199,7 @@ class Data: """ def rename_key(self, oldkey, newkey): """Convenience function mainly intended for subclasses.""" - if not self.__dict__.get(newkey) and oldkey in self._data: + if not self._data.get(newkey) and oldkey in self._data: self._data[newkey] = self._data[oldkey] del self._data[oldkey]