Skip to content

Commit

Permalink
Use lead.project_id instead of lead.project
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed Aug 21, 2024
1 parent c68f9d1 commit 78bc438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/assessment_registry/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def validate_cna(self, data):
question_list.append(question)

def validate_lead(self, lead):
if lead.project != self.project:
if lead.project_id != self.project.id:
raise serializers.ValidationError('Only Source from current Project are allowed')
return lead

Expand Down

0 comments on commit 78bc438

Please sign in to comment.