|
@@ -250,7 +250,7 @@ def pygal_addtag(request, rel_path):
|
250
|
250
|
messages.info(request, _('Thanks for adding a Tag to %s') % w.name)
|
251
|
251
|
return redirect(get_next(request))
|
252
|
252
|
else:
|
253
|
|
- form = TagForm(factor_to_original=context['factor_to_original'])
|
|
253
|
+ form = TagForm(factor_to_original=context.get('factor_to_original'))
|
254
|
254
|
context['form'] = form
|
255
|
255
|
return render(request, 'pygal/tagedit.html', context=context)
|
256
|
256
|
|