Skip to content

Commit

Permalink
Only shows active projects+
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederporto committed Feb 3, 2024
1 parent fa083d4 commit d5308c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ")"))
Expand Down

0 comments on commit d5308c8

Please sign in to comment.