From: Nick Retallack Date: Tue, 6 Oct 2009 17:47:43 +0000 (-0700) Subject: fixed empty tag form submission X-Git-Url: http://git.veekun.com/zzz-floof.git/commitdiff_plain/bedce37c00ee72650787b590e0e549bf6971f2e3 fixed empty tag form submission --- diff --git a/floof/controllers/art.py b/floof/controllers/art.py index f08cd60..a0aecd7 100644 --- a/floof/controllers/art.py +++ b/floof/controllers/art.py @@ -38,9 +38,10 @@ class ArtController(BaseController): return render("/art/show.mako") # TODO: login required + # also, require post def tag(self, id): # c.art = h.get_object_or_404(Art, id=id) - c.art.add_tags(request.params["tags"], c.user) + c.art.add_tags(request.params.get("tags",""), c.user) elixir.session.commit() redirect_to('show_art', id=c.art.id)