|
|
@ -109,7 +109,16 @@ def detail(request, pk, fotka, soustredeni): |
|
|
|
|
|
|
|
|
|
|
|
def new_galerie(request, galerie, soustredeni): |
|
|
|
form = NewGalerieForm() |
|
|
|
if request.method == 'POST': |
|
|
|
form = NewGalerieForm(request.POST, request.FILES) |
|
|
|
if form.is_valid(): |
|
|
|
# TODO dopsat vytvoreni fotogalerie |
|
|
|
for obr in request.FILES.getlist('obr'): |
|
|
|
pass # TODO dopsat ulozeni obrazku |
|
|
|
# TODO presmerovani na nove vytvořenou galerii |
|
|
|
|
|
|
|
else: |
|
|
|
form = NewGalerieForm() |
|
|
|
|
|
|
|
return render(request, 'galerie/GalerieNew.html', |
|
|
|
{ |
|
|
|