diff --git a/coldfront/core/project/forms.py b/coldfront/core/project/forms.py index 119425a0b..3c2c88edd 100644 --- a/coldfront/core/project/forms.py +++ b/coldfront/core/project/forms.py @@ -55,7 +55,7 @@ def __init__(self, request_user, project_pk, *args, **kwargs): project_obj = get_object_or_404(Project, pk=project_pk) allocation_query_set = project_obj.allocation_set.filter( - resources__is_allocatable=True, is_locked=False, status__name__in=PENDING_ACTIVE_ALLOCATION_STATUSES) + resources__is_allocatable=True, is_locked=False, status__name__in=PENDING_ACTIVE_ALLOCATION_STATUSES).distinct() allocation_choices = [(allocation.id, "%s (%s) %s" % (allocation.get_parent_resource.name, allocation.get_parent_resource.resource_type.name, allocation.description if allocation.description else '')) for allocation in allocation_query_set] allocation_choices_sorted = []