title: ImageField returning null when there is a value in the database: Django
body: <p>I am trying to retrieve values from my database, but I am not getting the response I am looking for. My question is  how do I get the value that is under <code>Image</code> in my database entry?</p>
  <p>Database entry:</p>
  <pre><code>ID  name        image
  -----------------------------
  11  &quot;example&quot;   &quot;myimager.jpg&quot;
  </code></pre>
  <p>When I retrieve a list, I get this response for this entry:</p>
  <pre><code>{ &quot;image&quot;: null, &quot;name&quot;: &quot;example&quot; }
  </code></pre>
  <p>Model:</p>
  <pre><code>class Images(models.Model):
      name = models.CharField(max_length=255)
      image = models.ImageField()
  </code></pre>
  <p>View:</p>
  <pre><code>class GetImageViewSet(viewsets.ReadOnlyModelViewSet):
      &quot;&quot;&quot;
      This ViewSet automatically provides `list` and `detail` actions.
      &quot;&quot;&quot;
      queryset = Images.objects.all()
      serializer_class = ImageSerializer
      permission_classes = (IsAuthenticated,)
  </code></pre>
  <p>Serializer:</p>
  <pre><code>class ImageSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Images
          fields = ['image', 'name']
  </code></pre>