GenericForeignKey Deep Filtering | Baptiste Mispelon
GenericForeignKey Deep Filtering | Baptiste Mispelon
1 comments
Michal @programming.dev Good idea to use WHEN, but I'm not sure the code example is self explanatory enough
LogEntry.objects.filter(is_affected(USER))
Its possible to implement custom lookups in django, that may be a better interface for this.
1 0 Reply