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