Human: Django - Filter queryset by CharField value length Assistant: 
Here is some code to filter a Django model `MyModel` to have charfield length of max `255`

MyModel.objects.extra(where=['CHAR_LENGTH(text) > 254'])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.