mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 22:52:23 +01:00
Add south-specific hacks
This commit is contained in:
@ -259,7 +259,7 @@ def upload(request):
|
||||
|
||||
for i, file in enumerate(files):
|
||||
duration = File(file).info.length
|
||||
hash = send_to_bertha(file)
|
||||
hash = send_to_bertha(file).decode('ascii')
|
||||
if not hash:
|
||||
return JsonResponse({'success': False, 'errorMessage': 'Files not uploaded correctly.'})
|
||||
song = Song(user=request.user, artist=artists[i], title=titles[i], hash=hash, duration=duration)
|
||||
|
||||
Reference in New Issue
Block a user