Django - Filter queryset by CharField value length,MyModel.objects.filter(text__regex='^.{254}.*')