Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Prices): API: new filter on proof owner_consumption #753

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Mar 8, 2025

What

Similar to #741, and following #750
Add a new API price filter on proof__owner_consumption

@@ -31,6 +31,9 @@ class PriceFilter(django_filters.FilterSet):
field_name="proof__type",
choices=proof_constants.TYPE_CHOICES,
)
proof__owner_consumption = django_filters.BooleanFilter(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I don't know if it's the right strategy...
because it'll be tricky to filter for the opposite ("community" prices).
maybe instead create a new custom filter - for instance proof__group that could be "consumption" or "community", and we would manage the custom filtering somewhere in the backend

@raphodn raphodn marked this pull request as draft March 8, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

Proofs: allow users to specify that a receipt is not theirs (consumption-related)
1 participant