-
Notifications
You must be signed in to change notification settings - Fork 134
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
Remove deleted_by serializer field for Dataviews #2721
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrankApiyo Why do we need the deleted_by
field yet we do not expose to the user deleted records?
Could we exclude this field instead?
570e254
to
a3b56ee
Compare
Remove deleted DataViews | ||
""" | ||
return super().filter_queryset( | ||
queryset.filter(deleted_at=None, deleted_by=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrankApiyo Why do we need to filter by both, why not just use deleted_at
?
Update lookup field
Remove redundant test case
Remove filter_queryset method
Changes / Features implemented
deleted_by
serializer fieldSteps taken to verify this change does what is intended
Ran locally
Side effects of implementing this change
N/A
Before submitting this PR for review, please make sure you have:
Closes #2720