Depending on how your string is structured you might be able to use a contains
lookup. Something like:
# 'name' is whatever your string column on category is called
MyModel.objects.filter(category__name__contains='->{}->'.format(y_string))
See the docs for more details on lookup types.