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,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
 

Loading…
Cancel
Save