Here you use a generator instead of a list comprehension, which is slower when you know you'll have to iterate through every element.  Since Django 1.7 requires at least Python 2.7 (if I remember well), shouldn't we use set comprehensions?  That would make `if len({len(i) for i in value}) > 1:`.