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

Django

431 readers
2 users here now

Django Project

Django Community

Django Ecosystem

Jobs
Learning/Docs
Podcasts:
Related Fediverse communities
Feeds

founded 2 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] Michal 2 points 3 weeks ago* (last edited 3 weeks 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.