On Apr 22, 4:45 am, Taras_96 <taras...@gmail.com> wrote: > Hi, > > I've just upgraded to Django 1.4, and I was getting a > 'builtin_function_or_method' object has no attribute 'split' error > being thrown. I traced this down to an erroneous use of distinct, I > had: > > X.objects.distinct(id) > > Which had previously worked, but was now throwing. I've removed the > 'id' parameter (which is also a Python keyword). > > Is it worth putting this into the upgrade notes for 1.4
I am not sure how important the release notes part is. However, this is the second time I see the above problem raise by users, so maybe improving the error message from .distinct() would be possible. It could say something like "In 1.4 the args must be strings". If somebody comes up with good wording for the error message it could be possible that it will be included in future versions of 1.4. - Anssi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.