Skip to content

Commit

Permalink
[ISSUE-3714] Add Managers for filtering internal notes and time entries
Browse files Browse the repository at this point in the history
  • Loading branch information
zeryabkhan91 committed Oct 3, 2024
1 parent e3226ab commit 8ecd75e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions djconnectwise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1861,8 +1861,7 @@ def change_sla_state(self, new_stage, calendar, sla):
class NonInternalNoteManager(models.Manager):
def get_queryset(self):
return super().get_queryset(). \
filter(Q(internal_analysis_flag=False) | Q(internal_flag=False)
)
exclude(Q(internal_analysis_flag=True) | Q(internal_flag=True))


class ServiceNote(UpdateRecordMixin, TimeStampedModel):
Expand Down

0 comments on commit 8ecd75e

Please sign in to comment.