Skip to content

Commit

Permalink
filters /api/pricing by provider
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed May 1, 2024
1 parent b6ea56b commit f552117
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion saas/api/plans.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023, DjaoDjin inc.
# Copyright (c) 2024, DjaoDjin inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -46,8 +46,13 @@ class PlanSmartListMixin(DateRangeContextMixin, ProviderMixin):
search_fields = (
'slug',
'title',
'profile',
)

alternate_fields = {
'profile': 'organization__slug',
}

ordering_fields = (
('title', 'title'),
('period_amount', 'period_amount'),
Expand Down

0 comments on commit f552117

Please sign in to comment.