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

[ISSUE-3714] Add managers for internal notes and time entries #442

Merged

Conversation

zeryab-topleft
Copy link
Contributor

No description provided.

class NonInternalNoteManager(models.Manager):
def get_queryset(self):
return super().get_queryset(). \
filter(Q(internal_analysis_flag=False) | Q(internal_flag=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be either an AND query (both internal_analysis_flag is False and internal_flag is False), or make it exclude instead of filter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@kti-matt kti-matt merged commit 1096f3e into master Oct 4, 2024
@kti-matt kti-matt deleted the 3714-add-managers-for-internal-note-and-time-entries branch October 4, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants