def add_image(request):
form = ff = None
if request.method == 'POST':
- if request.POST.get('form_id') == 'flickr':
- ff = forms.FlickrForm(request.POST)
+ if request.POST.get('form_id') == 'import':
+ ff = forms.ImportForm(request.POST)
if ff.is_valid():
form = forms.ImageAddForm(ff.cleaned_data)
else:
if form is None:
form = forms.ImageAddForm()
if ff is None:
- ff = forms.FlickrForm()
+ ff = forms.ImportForm()
return render(request, 'cover/add_image.html', {
'form': form,
'ff': ff,