Jason NovingerM to Django · 1 year agoGenericForeignKey Deep Filtering | Baptiste Mispelonblog.bmispelon.rocksexternal-linkmessage-square1linkfedilinkarrow-up15arrow-down10file-text
arrow-up15arrow-down1external-linkGenericForeignKey Deep Filtering | Baptiste Mispelonblog.bmispelon.rocksJason NovingerM to Django · 1 year agomessage-square1linkfedilinkfile-text
minus-squareMichallinkfedilinkarrow-up2·1 year 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.