human
Django - Filter queryset by CharField value length
assistant
Here is some code to filter queryset for all objects in Django model `MyModel` where texts length are greater than `254`

MyModel.objects.filter(text__regex='^.{254}.*')

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