Skip to content

Commit

Permalink
Dont use transparent illustrations for birds
Browse files Browse the repository at this point in the history
  • Loading branch information
eleurent committed Jan 28, 2024
1 parent a31fa01 commit 46dd78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/nature_go/observation/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Meta:

def get_illustration_url(self, obj):
request = self.context.get('request')
if bool(obj.illustration_transparent):
if bool(obj.illustration_transparent) and obj.type != Species.BIRD_TYPE:
return request.build_absolute_uri(obj.illustration_transparent.url)
elif bool(obj.illustration):
return request.build_absolute_uri(obj.illustration.url)
Expand Down

0 comments on commit 46dd78d

Please sign in to comment.