title: How to filter my database row whit their id?
body: <p>I'm new to python and my question might be so simple and maybe i'm just confusing myself.</p>
  
  <p>I have a postgresql database table with 3 columns, one is id and other two are some information about users.</p>
  
  <p>How can I filter my table so that it give me one of my column's data and its id?</p>
  
  <p>My code is this:</p>
  
  <pre><code>def new_item_lessons_learned(request):
  if request.method == 'POST':
      lessons_learned_form = LessonsLearnedForm(request.POST)
      if lessons_learned_form.is_valid():
          getting_departments_id = Departments.objects.filter(mycolumn=pk)
  </code></pre>
  
  <p>The problem is in <code>.filter</code>. I hope someone can help me. Thanks.</p>