From: Marcin Koziej Date: Wed, 21 Dec 2011 08:34:08 +0000 (+0100) Subject: also dont add tuples to lists sleepy man. X-Git-Tag: 1.7~179 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/0718c9d23a5791aa51bc11bba6a011fe9a8a616d?ds=inline;hp=--cc also dont add tuples to lists sleepy man. --- 0718c9d23a5791aa51bc11bba6a011fe9a8a616d diff --git a/librarian/dcparser.py b/librarian/dcparser.py index cf4a7b9..534cd27 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -134,7 +134,7 @@ class DCInfo(type): try: fields.index(field) except ValueError: - fields = (field,) + fields + fields.insert(0, field) class_dict['FIELDS'] = tuple(fields) return super(DCInfo, meta).__new__(meta, classname, bases, class_dict)