mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 23:16:36 +02:00
Merge remote-tracking branch 'origin/main' into ms/2560-update-first-ready-values
This commit is contained in:
commit
fa62e651aa
54 changed files with 1684 additions and 458 deletions
|
@ -7,6 +7,7 @@ from django.db.models.manager import BaseManager
|
|||
from typing import List
|
||||
from registrar.utility.enums import LogCode
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -110,7 +111,7 @@ class PopulateScriptTemplate(ABC):
|
|||
TypeError: If custom_filter is not Callable.
|
||||
"""
|
||||
|
||||
records = object_class.objects.filter(**filter_conditions)
|
||||
records = object_class.objects.filter(**filter_conditions) if filter_conditions else object_class.objects.all()
|
||||
|
||||
# apply custom filter
|
||||
records = self.custom_filter(records)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue