|
@ -109,6 +109,15 @@ def detail(request, pk, fotka, soustredeni): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def new_galerie(request, galerie, soustredeni): |
|
|
def new_galerie(request, galerie, soustredeni): |
|
|
|
|
|
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() |
|
|
form = NewGalerieForm() |
|
|
|
|
|
|
|
|
return render(request, 'galerie/GalerieNew.html', |
|
|
return render(request, 'galerie/GalerieNew.html', |
|
|