Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bryanh
on Oct 29, 2012
|
parent
|
context
|
favorite
| on:
Show HN: we open sourced our Django drip email app
The mechanism for doing this is a total hack on Django's ORM. We build a bigass list of all possible JOINs and concat them together:
some_model__another__title some_model__another__date some_model__another__description
You select which fields and values to use, and then we can just dump them into a queysets' filter or exclude method using python's lovely kwarg expansion.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: