Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListField fails with duplicate values in iterable #57

Closed
aogier opened this issue Aug 6, 2014 · 1 comment
Closed

ListField fails with duplicate values in iterable #57

aogier opened this issue Aug 6, 2014 · 1 comment

Comments

@aogier
Copy link

aogier commented Aug 6, 2014

Hi, when having a field like:

cn = ListField(db_column='cn')

trying to save eg. ['foo', 'bar', 'bar'] lead to a protocol error because duplicate value. Can't tell ATM if duplicates are allowed on a per-attribute basis, don't think anyway as it is really pointless in respect to RFC2251 : "the order of attribute values within the vals set is undefined and implementation-dependent, and MUST NOT be relied upon."
Maybe simply returning sets from ListField field class eg. from_ldap and get_db_prep_save ? not sure

thank you, ciao

@peppelinux
Copy link

I coded this after experiencing issues with ListField in Django 2

#152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants