Django 'instancemethod' object has no attribute '__getitem__'
<p>Html</p>

<pre><code>  &lt;ul class="dropdown-menu" role="menu"&gt;
      &lt;li&gt;java &lt;input type="checkbox" name="categories[]" value="Java"&gt;&lt;/li&gt;
      &lt;li class="divider"&gt;&lt;/li&gt;
      &lt;li&gt;c  &lt;input type="checkbox" name="categories[]" value="C"&gt;&lt;/li&gt;
      &lt;li class="divider"&gt;&lt;/li&gt;
      &lt;li&gt;network &lt;input type="checkbox" name="categories[]" value="Network"&gt;&lt;/li&gt;
      &lt;li class="divider"&gt;&lt;/li&gt;
  &lt;/ul&gt;
</code></pre>

<p>Python</p>

<pre><code>list_categories = request.POST.getlist['categories']
</code></pre>

<p>This code cause error</p>

<blockquote>
  <p>'instancemethod' object has no attribute <code>'__getitem__'</code>.</p>
</blockquote>

<p>And I already tried </p>

<pre><code>list.categories = request.POST['categories']
</code></pre>