diff --git a/report/forms.py b/report/forms.py index c8541fb..831a5f9 100644 --- a/report/forms.py +++ b/report/forms.py @@ -188,7 +188,7 @@ def area_responsible_of_user(user): def activities_associated_as_choices(): areas = [] - for area in Area.objects.all(): + for area in Area.objects.filter(project__active=True): activities = [] for activity in area.activities.all(): activities.append((activity.id, activity.text + " (" + activity.code + ")"))