Commit 78aa1b6
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 793a86d commit 78aa1b6
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| |||
0 commit comments