Multi-platform: support multiple files per version #201
@ -814,7 +814,9 @@ class Version(CreatedModifiedMixin, TrackChangesMixin, models.Model):
|
||||
}
|
||||
if self.blender_version_max:
|
||||
params['blender_version_max'] = self.blender_version_max
|
||||
if platforms := self.platforms.all():
|
||||
if platform:
|
||||
params['platforms'] = platform
|
||||
elif platforms := self.platforms.all():
|
||||
params['platforms'] = ','.join([p.slug for p in platforms])
|
||||
query_string = urlencode(params)
|
||||
download_url += f'?{query_string}'
|
||||
|
Loading…
Reference in New Issue
Block a user