(self, value)
| 55 | ) |
| 56 | |
| 57 | def get_prep_value(self, value): |
| 58 | value = super().get_prep_value(value) |
| 59 | |
| 60 | if isinstance(value, dict): |
| 61 | prep_value = {} |
| 62 | for key, val in value.items(): |
| 63 | key = str(key) |
| 64 | if val is not None: |
| 65 | val = str(val) |
| 66 | prep_value[key] = val |
| 67 | value = prep_value |
| 68 | |
| 69 | if isinstance(value, list): |
| 70 | value = [str(item) for item in value] |
| 71 | |
| 72 | return value |
| 73 | |
| 74 | |
| 75 | HStoreField.register_lookup(lookups.DataContains) |