Add PlanFilter to Organization admin#659
Conversation
Lets staff slice the Organization list view by the Plan an org is subscribed to, plus a "No plan" option for orgs with no Subscription rows. Cancelled subscriptions still count as subscribed, matching the semantics of Organization.plan. https://claude.ai/code/session_01TMj6rVfo3TL8MwJC5h3enV
|
Seems to work well- I do feel though that this would be greatly improved if we could mark who is currently subscribed vs. cancelled |
|
I weighed that—orgs in a cancelled state will continue to have access to a plan until their subscription is deleted at the end of the term. It feels more accurate to include cancelled subscriptions in these groups, so they represent active subscriptions. I think adding a column to this view would be the best way to identify orgs that won't have their subscription renew, and that's a good thing to add here. |
|
Now when filtering by a plan, a column's added to indicate whether the subscription will renew. |
c2334d7 to
76f1274
Compare
|
The number of SQL queries (as viewed in the Django debug toolbar) with this new column in the view radically jumped from ~30ish to ~200. This needs optimization |
Helps us answer "How many orgs are subscribed to plan X?" with an update to the Django Admin.
Lets staff slice the Organization list view by the Plan an org is subscribed to, plus a "No plan" option for orgs with no Subscription rows. Cancelled subscriptions still count as subscribed, matching the semantics of Organization.plan.
Co-authored with Claude Opus 4.7