Skip to content

Commit

Permalink
Fix too fast fix
Browse files Browse the repository at this point in the history
- `is not None` should not have been there
  • Loading branch information
henrikhorluck committed Jan 24, 2024
1 parent 347a827 commit e8b8760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/events/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_attendee_info(self, instance: Event):
user = self.context["request"].user
if (
user.is_authenticated
and hasattr(instance, "attendance_event") is not None
and hasattr(instance, "attendance_event")
and (attendance_event := instance.attendance_event)
):
return {
Expand Down

0 comments on commit e8b8760

Please sign in to comment.