From 252fa2e757a7aaff55fefe58d60d64c82999a41c Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:17:26 -0700 Subject: [PATCH] lint changes --- src/registrar/tests/test_reports.py | 2 -- src/registrar/utility/model_annotations.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/registrar/tests/test_reports.py b/src/registrar/tests/test_reports.py index 5689bf95e..664a038f2 100644 --- a/src/registrar/tests/test_reports.py +++ b/src/registrar/tests/test_reports.py @@ -52,8 +52,6 @@ from waffle.testutils import override_flag from datetime import datetime from django.contrib.admin.models import LogEntry, ADDITION from django.contrib.contenttypes.models import ContentType -from django.utils import timezone -from waffle.testutils import override_flag class CsvReportsTest(MockDbForSharedTests): diff --git a/src/registrar/utility/model_annotations.py b/src/registrar/utility/model_annotations.py index 5d6dc1294..6fff51c2c 100644 --- a/src/registrar/utility/model_annotations.py +++ b/src/registrar/utility/model_annotations.py @@ -1,17 +1,17 @@ """ -Model annotation classes. +Model annotation classes. Intended to return django querysets with computed fields for api endpoints and our csv reports. Used by both API endpoints (e.g. portfolio members JSON) and data exports (e.g. CSV reports). -Initially created to manage the complexity of the MembersTable and Members CSV report, +Initially created to manage the complexity of the MembersTable and Members CSV report, as they require complex but common annotations. Example: # For a JSON table endpoint permissions = UserPortfolioPermissionAnnotation.get_annotated_queryset(portfolio) # Returns queryset with standardized fields for member tables - + # For a CSV export permissions = UserPortfolioPermissionAnnotation.get_annotated_queryset(portfolio, csv_report=True) # Returns same fields but formatted for CSV export