Replies: 1 comment 1 reply
-
Hi @rtpg — Nice example thanks. Not sure that we have a full story to justify it but could be the start of a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on a fairly hefty API refactor, I'm trying to track some changes in our filter code.
I've ended up doing something like the following:
On top of that, custom filter subclasses do something like the following:
idea being that I can then serialize a filterset down to something looking like a filter spec by calling
filter.serialize_definition()
and capturing most of the init args and whatnot, like Django model field'sdeconstruct
.Main thing though is that while I want
deconstruct
, I don't particularly otherwise need library support for generating a spec or something like that. That involves decisions I'm not prepared to tackle. But I have to imagine I'm not the only one looking to dump outFilterSet
s to some diffable formatBeta Was this translation helpful? Give feedback.
All reactions