models: Comment Album.images not preserving order

This commit is contained in:
Stein Magnus Jodal 2013-03-24 00:03:42 +01:00
parent 59bcabfdfe
commit fc76318f20

View File

@ -203,6 +203,9 @@ class Album(ImmutableObject):
#: The album image URIs. Read-only.
images = frozenset()
# XXX If we want to keep the order of images we shouldn't use frozenset()
# as it doesn't preserve order. I'm deferring this issue until we got
# actual usage of this field with more than one image.
def __init__(self, *args, **kwargs):
# NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5