title: Adding and updating ListField with Mongoengine
body: <p>Using Mongoengine and trying to form a tag cloud. To each item I would like to attach one or more tags. Something similar like the tags are used here (below each question asked).</p>
  <p>After searching and reading many posts here, I still can't the proper way of adding new entries to a <code>ListField</code>, or how to replace them.</p>
  <pre><code>class Item(Document):
      tags = ListField(StringField(max_length=300))
  </code></pre>
  <p>I'm trying to push one or more new tags, by using a form and gather the posted results. In my <code>views.py</code> I have the following check:</p>
  <pre><code>if 'tags' in request.POST and request.POST['tags'] &lt;&gt; '':
     for Tag in request.POST.getlist('tags'):
         ItemData.update(push__tags__S__tags=Tag)
  </code></pre>
  <p>When trying to push it, it fails:</p>
  <blockquote>
  <p>ValidationError (Profile:5185505b73ea128e878f4e82) (Only lists and
  tuples may be used in a list field: ['tags'])</p>
  </blockquote>
  <p>Obviously I'm using the wrong type, but I'm lost on how to get this one solved.
  Strange thing is that for some reason the data is appended to the record though.. (posted &quot;test&quot; and refreshed browser)</p>
  <blockquote>
  <p>&quot;tags&quot; : [ &quot;test&quot;, &quot;test&quot; ] }</p>
  </blockquote>
  <p>Can one show me a small example how to deal with a posted string (from a HTML form) and push it properly into a <code>ListField</code> (and how to replace them all).</p>