title: How to make tastypie give the url of a file instead of its path?
body: <p>I'm using Django and Tastypie to create a RESTful web app. I have a model like this</p>
  
  
  
  <pre><code>class Picture(models.Model):
      # some other fields
      image = models.ImageField('Image')
      def image_url(self):
          return self.image.url
  </code></pre>
  
  <p>Tastypie will give the image's path but actually I need its url. How to write a correct resource api to achive this?</p>