flickr info
This commit is contained in:
parent
f4025b8546
commit
46a512a4c7
|
@ -72,11 +72,16 @@ class Image(models.Model):
|
|||
else:
|
||||
flickrPhoto = flickr.Photo(id=self.get_flickr_id())
|
||||
sizes = flickrPhoto.getSizes()
|
||||
photoInfo = flickrPhoto.getInfo()
|
||||
# photoInfo = flickrPhoto.getInfo()
|
||||
ret = {
|
||||
'url': self.url,
|
||||
'sizes': sizes,
|
||||
'photoInfo': photoInfo,
|
||||
'photoInfo': {
|
||||
'title': flickrPhoto._Photo__title,
|
||||
'description': flickrPhoto._Photo__description,
|
||||
'owner': flickrPhoto._Photo__owner,
|
||||
'tags': flickrPhoto._Photo__tags
|
||||
},
|
||||
'caption': self.caption,
|
||||
'location': {
|
||||
'id': self.location.id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user