<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Farhat Nawaz</title>
    <description>The latest articles on DEV Community by Farhat Nawaz (@farhatnawaz).</description>
    <link>https://dev.to/farhatnawaz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F34880%2Fe40d0135-2ca9-4064-935a-fa6f9ebbfc2d.jpeg</url>
      <title>DEV Community: Farhat Nawaz</title>
      <link>https://dev.to/farhatnawaz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/farhatnawaz"/>
    <language>en</language>
    <item>
      <title>TypeError: 'list' object is not callable</title>
      <dc:creator>Farhat Nawaz</dc:creator>
      <pubDate>Fri, 29 Sep 2017 06:44:27 +0000</pubDate>
      <link>https://dev.to/farhatnawaz/typeerror-list-object-is-not-callable-28</link>
      <guid>https://dev.to/farhatnawaz/typeerror-list-object-is-not-callable-28</guid>
      <description>&lt;p&gt;I am writing an API in Flask with mongoengine. In my 'search' endpoint, the API receives an 'id' and retrieves all the objects from database against that id. But when I try to return those objects in json form like this:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    return [redemp.to_json for redemp in redemps]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;I get the error saying "TypeError: 'list' object is not callable"&lt;br&gt;
What's wrong here?&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>flask</category>
      <category>mongoengine</category>
    </item>
  </channel>
</rss>
