Jason Novinger@programming.devM to Django@programming.dev · 27 days agoGenericForeignKey Deep Filtering | Baptiste Mispelonblog.bmispelon.rocksexternal-linkmessage-square1fedilinkarrow-up14file-text
arrow-up14external-linkGenericForeignKey Deep Filtering | Baptiste Mispelonblog.bmispelon.rocksJason Novinger@programming.devM to Django@programming.dev · 27 days agomessage-square1fedilinkfile-text
minus-squareMichal@programming.devlinkfedilinkarrow-up2·edit-227 days agoGood 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.
Good idea to use WHEN, but I’m not sure the code example is self explanatory enough
Its possible to implement custom lookups in django, that may be a better interface for this.