this post was submitted on 25 Nov 2024
4 points (100.0% liked)

Django

447 readers
2 users here now

Django Project

Django Community

Django Ecosystem

Jobs
Learning/Docs
Podcasts:
Related Fediverse communities
Feeds

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 months ago* (last edited 2 months ago)

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.