Fix silly mistake in dream attachment saving
This commit is contained in:
parent
82e7b262e2
commit
4f25fe20df
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class DreamCreateView(LoginRequiredMixin, CreateView):
|
||||||
|
|
||||||
for attachment in form.cleaned_data["uploads"]:
|
for attachment in form.cleaned_data["uploads"]:
|
||||||
dba = DreamMedia(dream=form.instance)
|
dba = DreamMedia(dream=form.instance)
|
||||||
dba.media.save(get_upload_path(form.instance, dba.media.name), attachment)
|
dba.media.save(get_upload_path(form.instance, attachment.name), attachment)
|
||||||
dba.save()
|
dba.save()
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue