Browse Source

Bug-Fix: Tagform for items which have no webnail

master
Dirk Alders 4 years ago
parent
commit
3f6afc9996
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      views/__init__.py

+ 1
- 1
views/__init__.py View File

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

Loading…
Cancel
Save