X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/324ea2adc265de0c02ea56328f5f0a420dbaa999..bedce37c00ee72650787b590e0e549bf6971f2e3:/floof/controllers/art.py 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)