Commit 78a8b97
committed
serialize_tags: make .filter(tags__contains='string') work
the example in readme says this example works, but actually it splits
the argument by ',' unconditionally, expecting a list. so a string will
be made into a "s,t,r,i,n,g". so we should handle getting passed either
a single string and pass it through unchanged, or a list and join them
actually if a list, we'd want to dedupe so we use a set which is the
native type of the library for tags anyways1 parent 16d6e54 commit 78a8b97
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| |||
0 commit comments