I want to take a string that looks like this: 'Oreo.12.37-40.Apple.78' and turn it into a list that looks like this:
['Oreo', 12, 37, 38, 39, 40, 'Apple', 78]
Where the '-' causes iteration between the values. ('37-40' becomes [37,38,39,40])
https://stackoverflow.com/a/5705014/1099935 has a really nice solution, but I don't understand it enough to know how to incorporate string handling. (It works great with number only, but fails with strings in the int())
comments are locked for me(?), so here is an additional comment: I need the list to contain either int values or strings. Then using Q objects in the filters items can be filter by common name or the assigned product key (generally short and also used commonly)